Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 13.0.1
-
None
-
-
480f5366d (13.0)
Description
If I create a trivial C++ program:
#include <iostream> void emit(int val) { std::cout << val << '\n'; } int main(int argc, char** argv) { emit(42); return 0; }
This program compiles and runs just fine. However, when I open it in Qt Creator, I get a bunch of errors around the emit function.
If I change the name of the function to something else, the errors go away.
It seems like emit might mean something special in Qt-land and so even for non-Qt C++ projects Qt Creator treats it as a keyword.