Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 2.8.1
-
None
-
Ubuntu Linux / GCC 4.7.3
Windows / MinGW / GCC 4.8.1
Description
We recently transitioned an old code base to use Qt Creator and qmake. The old code base included a "foreach" macro, which performed a similar function to Qt's foreach loop.
Our projects don't use the Qt framework, so we always use CONFIG-=qt in project files. This means that there are no issues with Qt's foreach when building.
However, when viewing code in Qt Creator, the usage of foreach is highlighted in red as an error, even when the code builds successfully. Renaming our 'foreach' macro to something else fixes the problem.
I've attached a simple test case which should demonstrate the issue.
Attachments
Issue Links
- is replaced by
-
QTCREATORBUG-1478 Qt Creator highlights qt related keywords in non qt projects
-
- Closed
-