Skip to content

Commit

Permalink
Fix merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierd committed Feb 1, 2013
1 parent 5aa18cd commit 4fab34a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions plugin/libclang.py
Expand Up @@ -72,10 +72,12 @@ def initClangComplete(clang_complete_flags, clang_compilation_database, \

global builtinHeaderPath
builtinHeaderPath = None
params = getCompileParams(vim.current.buffer.name)
args = getUserCompileParams(vim.current.buffer.name)
params = getCompilationDBParams(vim.current.buffer.name)
args += params['args']

if not canFindBuiltinHeaders(index, params["args"]):
builtinHeaderPath = getBuiltinHeaderPath(library_path, params["args"])
if not canFindBuiltinHeaders(index, args):
builtinHeaderPath = getBuiltinHeaderPath(library_path, args)

if not builtinHeaderPath and printWarnings:
print "WARNING: libclang can not find the builtin includes."
Expand Down

0 comments on commit 4fab34a

Please sign in to comment.