Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
Qt Creator 3.5.1
-
None
-
linux, ubuntu 16.04
Description
When I edit C project in QtCreator it still uses c++ code highlighting.
Even when I create project via New-Other-Non-Qt-Plain C application.
The macro __cplusplus is defined, words bool, virtual, template, namespace etc are highlighted as keywords, which brakes syntax. In every C file, despite the project kind.
No matter if I choose clang code model, it still uses c++ code rules.
QtCreator 3.5.1 (from Ubuntu 16.04 repo), Qt 5.5.1
Attachments
Issue Links
- relates to
-
QTCREATORBUG-2818 new is identified as a keyword when editing C code.
- Closed
-
QTCREATORBUG-9125 Invalid syntax when using Qt Creator as C editor
- Closed
For Gerrit Dashboard: QTCREATORBUG-18004 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
182459,6 | CppEditor: Do not highlight C++ and Qt keywords for C | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |