From db4c25c97ac62e4ea5f47096850b53668e193ca5 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sun, 12 Jan 2014 12:36:44 -0800 Subject: [PATCH] Clang builtin headers now included with -isystem --- python/ycm/completers/cpp/flags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ycm/completers/cpp/flags.py b/python/ycm/completers/cpp/flags.py index 6c2fee1c..b09737de 100644 --- a/python/ycm/completers/cpp/flags.py +++ b/python/ycm/completers/cpp/flags.py @@ -200,6 +200,6 @@ def _RemoveUnusedFlags( flags, filename ): def _SpecialClangIncludes(): libclang_dir = os.path.dirname( ycm_core.__file__ ) path_to_includes = os.path.join( libclang_dir, 'clang_includes' ) - return [ '-I', path_to_includes ] + return [ '-isystem', path_to_includes ]