Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-2818

new is identified as a keyword when editing C code.

    XMLWordPrintable

Details

    Description

      The keyword `new` is C++ only, yet when editing C code, its is highlighted incorrectly.
      I also get red underlined warnings.


      SomeStruct *new;
      new = calloc(sizeof(SomeStruct));
      new->foo = 1; // ***

      ***: This line has the tooltip " expected token `;' got `->' "

      Git 2.1 branch as of today: aa0e82e6c87bf9d26b00f0ddabd5ab81416449d1

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kosjar Nikolai Kosjar
              ideasman42 Campbell Barton
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes