2014-09-25 17:49:30 +00:00
|
|
|
# Vim YouCompleteMe completion configuration.
|
|
|
|
#
|
|
|
|
# See doc/topics/ycm.md for details.
|
|
|
|
|
|
|
|
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('src'),
|
2016-07-01 13:00:22 +00:00
|
|
|
'-I', AbsolutePath('test'),
|
2015-07-21 10:37:10 +00:00
|
|
|
'-DVIXL_DEBUG'
|
2014-09-25 17:49:30 +00:00
|
|
|
'-Wall',
|
|
|
|
'-Werror',
|
|
|
|
'-Wextra',
|
|
|
|
'-pedantic',
|
2014-11-25 10:38:32 +00:00
|
|
|
'-Wno-newline-eof',
|
2014-09-25 17:49:30 +00:00
|
|
|
'-Wwrite-strings',
|
2015-07-21 10:37:10 +00:00
|
|
|
'-std=c++11',
|
2014-09-25 17:49:30 +00:00
|
|
|
'-x', 'c++'
|
|
|
|
]
|
|
|
|
|
|
|
|
if platform.machine() != 'aarch64':
|
2016-07-01 13:00:22 +00:00
|
|
|
flags.append('-DVIXL_INCLUDE_SIMULATOR')
|
2014-09-25 17:49:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
def FlagsForFile(filename, **kwargs):
|
|
|
|
return {
|
|
|
|
'flags': flags,
|
|
|
|
'do_cache': True
|
|
|
|
}
|
|
|
|
|