blob: c0c2566fe774c910f37270e86c1bf6c97969232c [file] [log] [blame]
armvixlc68cb642014-09-25 18:49:30 +01001# Vim YouCompleteMe completion configuration.
2#
3# See doc/topics/ycm.md for details.
4
5import os
6import platform
7
8repo_root = os.path.dirname(os.path.abspath(__file__))
9
10# Paths in the compilation flags must be absolute to allow ycm to find them from
11# any working directory.
12def AbsolutePath(path):
13 return os.path.join(repo_root, path)
14
15flags = [
16 '-I', AbsolutePath('src'),
armvixldb644342015-07-21 11:37:10 +010017 '-DVIXL_DEBUG'
armvixlc68cb642014-09-25 18:49:30 +010018 '-Wall',
19 '-Werror',
20 '-Wextra',
21 '-pedantic',
armvixl330dc712014-11-25 10:38:32 +000022 '-Wno-newline-eof',
armvixlc68cb642014-09-25 18:49:30 +010023 '-Wwrite-strings',
armvixldb644342015-07-21 11:37:10 +010024 '-std=c++11',
armvixlc68cb642014-09-25 18:49:30 +010025 '-x', 'c++'
26]
27
28if platform.machine() != 'aarch64':
29 flags.append('-DUSE_SIMULATOR')
30
31
32def FlagsForFile(filename, **kwargs):
33 return {
34 'flags': flags,
35 'do_cache': True
36 }
37