forked from dkorolev/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ycm_extra_conf.py
30 lines (30 loc) · 977 Bytes
/
.ycm_extra_conf.py
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
def Settings(**kwargs):
if kwargs.get('language') == 'cfamily':
return {
'flags': [
'-Wall',
'-Wextra',
'-Wno-unused-includes',
'-std=c++17',
# Treat `.h` headers as `.hpp` / C++ ones.
'-x', 'c++',
# For `current` headers.
'-I', './current/',
'-I', '../current/',
'-I', '../../current/',
# For `cmake`-based builds of C++ projects using `C5T/Current`.
'-DC5T_CMAKE_PROJECT',
'-I', '.current/inc',
'-I', '.current_debug/inc',
# For `#include <gtest/test.h>`, when using `googletest` via `CMakeLists.txt`.
'-isystem', './googletest/googletest/include',
'-isystem', '../googletest/googletest/include',
'-isystem', '../../googletest/googletest/include',
# For `leveldb`.
'-I', './leveldb/include',
'-I', '../leveldb/include',
'-I', '../../leveldb/include',
]
}
else:
return {}