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

new is identified as a keyword when editing C code.

XMLWordPrintable

      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

        For Gerrit Dashboard: QTCREATORBUG-2818
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes