Ai
1 Star 0 Fork 0

lsgsx/osmium-tool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.ycm_extra_conf.py 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
Jochen Topf 提交于 2016-08-26 03:25 +08:00 . Add include directories to YCM config.
#-----------------------------------------------------------------------------
#
# Configuration for YouCompleteMe Vim plugin
#
# http://valloric.github.io/YouCompleteMe/
#
#-----------------------------------------------------------------------------
from os.path import realpath, dirname
basedir = dirname(realpath(__file__))
# some default flags
# for more information install clang-3.2-doc package and
# check UsersManual.html
flags = [
'-Werror',
'-Wall',
'-Wextra',
'-pedantic',
'-Wno-return-type',
'-Wno-unused-parameter',
'-Wno-unused-variable',
'-std=c++11',
# '-x' and 'c++' also required
# use 'c' for C projects
'-x',
'c++',
# workaround for https://github.com/Valloric/YouCompleteMe/issues/303
# also see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=800618
'-isystem',
'/usr/lib/ycmd/clang_includes/',
'-I%s/include' % basedir,
'-I%s/test/include' % basedir,
'-I%s/src' % basedir,
# libosmium include dirs
'-I%s/../libosmium/include' % basedir,
]
# youcompleteme is calling this function to get flags
# You can also set database for flags. Check: JSONCompilationDatabase.html in
# clang-3.2-doc package
def FlagsForFile( filename ):
return {
'flags': flags,
'do_cache': True
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/ssjylsg/osmium-tool.git
git@gitee.com:ssjylsg/osmium-tool.git
ssjylsg
osmium-tool
osmium-tool
master

搜索帮助