You are not logged in.

#1 2015-11-21 12:04:06

h9k
Member
Registered: 2012-08-04
Posts: 7

QT Creator. clang code model + autocompletion.

Hello

I am trying to chage Qt creator to use clang code model -> link but when I do that autocompletion stops working.
I have found this -> http://blog.qt.io/blog/2011/10/19/qt-creator-and-clang/ and it says:

When starting Qt Creator, make sure the clang libraries are in the library search path by including the <llvm-install-prefix>/lib directory in your LD_LIBRARY_PATH

which directory should I add on arch to this variable to make it work?
LD_LIBRARY_PATH = /usr/lib/ does not work or maybe I should do something else?

Regards.

Offline

#2 2015-11-24 14:14:41

Yggdrasil
Member
Registered: 2009-07-21
Posts: 37

Re: QT Creator. clang code model + autocompletion.

Did you enable the plugin?
Help > About Plugins, ClangCodeModel

Then you should be able to change the code model in the settings for C and C++.
Tools > Options, C++, Code Model

I'm not sure if this is everything as i don't get semantic highlighting like i get in kdevelop. So there might be something still missing.

Offline

#3 2015-11-27 18:59:24

h9k
Member
Registered: 2012-08-04
Posts: 7

Re: QT Creator. clang code model + autocompletion.

Hello,

Yes I did everything obvious: enabled plugin, change code model etc but when I do that autocompletion stops working.

Regards.

Offline

Board footer

Powered by FluxBB