-
Notifications
You must be signed in to change notification settings - Fork 5
/
ycm_jsondb_config.py.example
38 lines (29 loc) · 1.33 KB
/
ycm_jsondb_config.py.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
def GetAdditionalFlags():
flags = []
# Xcode 5.1
# flags.append('-isystem')
# flags.append('/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1')
# flags.append('-isystem')
# flags.append('/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include')
# flags.append('-isystem')
# flags.append('/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include')
# libc
flags.append('-isystem')
flags.append(
'/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include')
# llvm+clang from source
flags.append('-isystem')
flags.append(
'/Users/mg/local/clang_src/llvm_installed/bin/../include/c++/v1')
flags.append('-isystem')
flags.append(
'/Users/mg/local/clang_src/llvm_installed/bin/../lib/clang/3.6.0/include')
return flags
def GetIgnoredFlags():
flags = ['-Werror']
return flags
# Return the absolute path to the folder (NOT the file!) containing the
# compile_commands.json file. See here for more details:
# http://clang.llvm.org/docs/JSONCompilationDatabase.html
def GetCompilationDatabaseFolder(path):
return os.path.abspath(path + "/compilation_database_dir")