|
12345678910111213141516171819202122232425262728293031323334353637 |
-
- # The following line might come handy in ~/.vimrc:
- # let g:ycm_extra_conf_globlist = ['~/lol/*','!~/*']
-
- import os
- import ycm_core
-
- flags = [
- '-xc++',
- '-std=c++11',
- # Engine includes
- '-I.',
- '-I..',
- '-Isrc',
- # System includes
- '-I/usr/include/SDL2',
- '-I/usr/include/GL',
- '-I/usr/include/libdrm',
- '-I/usr/include/libpng15',
- # Macros
- '-DHAVE_CONFIG_H',
- '-D_REENTRANT',
- ]
-
- def FlagsForFile(filename, **kwargs):
-
- extension = os.path.splitext(filename)[1]
- if extension not in [ '.c', '.cpp', '.h' ]:
- return None
-
- final_flags = flags
-
- return {
- 'flags': final_flags,
- 'do_cache': True
- }
-
|