Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With my patch cflags can be read from an ini styled file.
The format of the file looks like this:
[<path/to/project>]
-I
-D
...
The file is read every time a new clang-complete process is created. This way
one can update the cflags file and the changes will be applied as soon a file is
newly opened.
The paths to the include directories are expanded relative to the path within
the brackets, if they are relative. None, one or more sections my apply to a
single source file if the paths within the braces lay in the path of the current
source file:
source file: ~/src/myproj/subdir/module.cpp
cflags-file:
[~]
...
[~/src/myproj]
...
[~/src/myproj/subdir]
...
[~/src/otherproj]
...
If the file
/src/myproj/subdir/module.cpp is visited the flags from the], [sections [
/src/myproj] and [/src/myproj/subdir] are applied to this file.The file, which is used to fill the cflags variable, can be customized by setting
the variable ac-clang-cflags-file.