blob: 147f4bfaa3979191786f8c3a66953d17b27af0ff [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'),
Alexandre Rames89dabc82016-07-01 14:00:22 +010017 '-I', AbsolutePath('test'),
armvixldb644342015-07-21 11:37:10 +010018 '-DVIXL_DEBUG'
armvixlc68cb642014-09-25 18:49:30 +010019 '-Wall',
20 '-Werror',
21 '-Wextra',
22 '-pedantic',
armvixl330dc712014-11-25 10:38:32 +000023 '-Wno-newline-eof',
armvixlc68cb642014-09-25 18:49:30 +010024 '-Wwrite-strings',
armvixldb644342015-07-21 11:37:10 +010025 '-std=c++11',
armvixlc68cb642014-09-25 18:49:30 +010026 '-x', 'c++'
27]
28
29if platform.machine() != 'aarch64':
Pierre Langlois1e85b7f2016-08-05 14:20:36 +010030 flags.append('-DVIXL_INCLUDE_SIMULATOR_AARCH64')
armvixlc68cb642014-09-25 18:49:30 +010031
32
33def FlagsForFile(filename, **kwargs):
34 return {
35 'flags': flags,
36 'do_cache': True
37 }
38