Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 3.4.2
-
None
Description
QtCreator does not recognize any class/method if the header includes other headers due to some defines.
I added a cmake example project that can be imported into QtCreator. If you look into main.cpp you will see "Dummy tmp" and "tmp.getFoo()".
QtCreator cannot follow that symbols because it doesn't know of defined "USE_DESKTOP" as it will be passed to the compiler.
So QtCreator needs to grab that information from cmake files.
$ cat CMakeFiles/Test.dir/flags.make
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
# compile CXX with /usr/bin/c++
CXX_FLAGS = -D USE_DESKTOP
CXX_DEFINES =