Open main menu

Linux and Unix Users Group at Virginia Teck Wiki β

Changes

Clang Complete

1 byte removed, 17:08, 13 September 2012
Other Include Paths
In order to specify other folders for autocomplete to search for headers, you need to place them (one per line, prefixed directly with '-I') into a .clang_complete file in the current working directory. (This file directly appends each line to the clang command, so if you need to use the C99 standard for a project, for example, you can do -std=c99 on a line of its own).
An example of this file using the c++0x standard, and including Qt libraries headers and libs from the current directory, is:
<pre>
-std=c++0x
-I.
</pre>
 
== Troubleshooting ==
Clang Complete depends on a mostly working environment to work. It will generally not autocomplete from broken header files, etc. So, type the following into vim to see if it's your code or clang complete that is messed up:
Anonymous user