summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-09-12 18:44:20 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-09-12 18:44:20 +0100
commit7a6c46c2411683a96874373afda156ab60a562c8 (patch)
tree1a0ceb225e0f6bf1ac603dc73cc5850bf812f0e4
parentbashrc (diff)
downloadutil-7a6c46c2411683a96874373afda156ab60a562c8.tar.bz2
util-7a6c46c2411683a96874373afda156ab60a562c8.tar.xz
util-7a6c46c2411683a96874373afda156ab60a562c8.zip
Assume C++
-rw-r--r--ycm_extra_conf.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ycm_extra_conf.py b/ycm_extra_conf.py
index 99c858d..ae6aa1c 100644
--- a/ycm_extra_conf.py
+++ b/ycm_extra_conf.py
@@ -88,6 +88,8 @@ def FlagsForFile( filename, **kwargs ):
flags = ApplyFlagQuirks(flags)
# Fall back to . for finding precompiled headers
+ flags.append("-x")
+ flags.append("c++");
flags.append("-I")
flags.append(os.path.dirname(filename))