-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.ycm_extra_conf.py
More file actions
35 lines (29 loc) · 859 Bytes
/
Copy path.ycm_extra_conf.py
File metadata and controls
35 lines (29 loc) · 859 Bytes
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
# Vim YouCompleteMe completion configuration.
import os
import platform
repo_root = os.path.dirname(os.path.abspath(__file__))
# Paths in the compilation flags must be absolute to allow ycm to find them from
# any working directory.
def AbsolutePath(path):
return os.path.join(repo_root, path)
flags = [
'-I', AbsolutePath('include'),
'-I', AbsolutePath('src'),
'-Wall',
'-Werror',
'-Wextra',
'-pedantic',
'-Wwrite-strings',
'-std=c++11',
'-x', 'c++',
'-DDEBUG',
'-DMODIFIABLE_FLAGS',
'-isystem',
'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1',
'-isystem', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/'
]
def FlagsForFile(filename, **kwargs):
return {
'flags': flags,
'do_cache': True
}