Qt Creator precompiled headers code completion -


i have problem code completion in qt creator. have precompiled header named ogreheaders.h. building clang using qmake mkspec unsupported/linux-clang. project builds when edit don't code hints. think because precompiled header included using -include-pch compiler option, not #include directive. qt creator code model doesn't find it. had idea wrapping header in #ifdefs or #ifndefs parse not compile.

#ifdef pch #include <ogreheaders.h> #endif 

i need somehow #define pch in qt creator code model, not in compiler's one. or reverse. tried using qmake_cxx_flags , defines, qt creator picks them up.

i saw this article integraton. @ bottom of article says:

when go “projects” mode, see tab “code completion settings”, can select “custom” header. when selecting option, code-model use header cache, compiler not use it.

i don't have option in qt creator(2.8.0). ideas how workaround issue or need build qt creator clang integration git?

put either

#define pch 

or

#undef pch 

to project_name.config file in project's root directory, project_name name of project in qt creator -- project_name.files , project_name.includes.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -