Commit bde090ae authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

Clang: Let clangcodemodel/README point to the corresponding *.qdoc

Change-Id: I5526ed6ea6840ccecd8890adf6ef454e45ba98f9
Reviewed-by: default avatarLeena Miettinen <>
parent 707d49d2
The ClangCodeModel plugin
The ClangCodeModel plugin integrates the clang frontend into Qt Creator. Clang
is "a C language family frontend for LLVM". You can find more information at
At the time of writing the plugin can replace the following functionality of
the built-in code model:
* Highlighting
* Completion
All other functionality relies on the built-in code model (indexing, quick
fixes, follow symbol, find usages, ...).
Compile the plugin
1. Get libclang
You need to have libclang (and thus llvm) installed on your system. Either
build llvm/clang yourself [1], install some ready-to-use package [2] or use the
package manager of your system.
See for git mirrors.
[2] or
If you are building llvm/clang yourself, make sure to build it in release mode.
2. Set LLVM_INSTALL_DIR and (re)build Qt Creator
Point the LLVM_INSTALL_DIR variable to the build/installation directory of
llvm, e.g.:
Installed via package manager on GNU/Linux:
Manually build on Unix in release mode:
Installed a snapshot on Windows:
Set the variable either as part of the build environment or pass it directly to
qmake and rebuild Qt Creator.
Enable the plugin
Enable the "ClangCodeModel" plugin in the dialog "Menu: Help -> About Plugins"
and restart Qt Creator.
Select the file types you want to use the ClangCodeModel for in "Menu: Tools ->
Options -> C++ -> Tab: Code Model". For the next opened file matching the
selected file types the ClangCodeModel will be used (see limitations at the
start of this README).
See ../../../doc/src/editors/creator-clang-codemodel.qdoc
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment