Permalink
Browse files

Bye clang binary.

  • Loading branch information...
1 parent 3a2f0a5 commit 162279c0171d5dacf7fa3ac678d96ab5f827ec91 @Rip-Rip committed Feb 19, 2013
Showing with 61 additions and 321 deletions.
  1. +54 −312 plugin/clang_complete.vim
  2. +7 −9 plugin/libclang.py
Oops, something went wrong.
View
@@ -48,11 +48,10 @@ def getBuiltinHeaderPath(library_path):
return None
def initClangComplete(clang_complete_flags, clang_compilation_database, \
- library_path, user_requested):
+ library_path):
global index
debug = int(vim.eval("g:clang_debug")) == 1
- printWarnings = (user_requested != "0") or debug
if library_path != "":
Config.set_library_path(library_path)
@@ -62,20 +61,19 @@ def initClangComplete(clang_complete_flags, clang_compilation_database, \
try:
index = Index.create()
except Exception, e:
- if printWarnings:
- print "Loading libclang failed, falling back to clang executable. ",
- if library_path == "":
- print "Consider setting g:clang_library_path"
- else:
- print "Are you sure '%s' contains libclang?" % library_path
+ print "Loading libclang failed, completion won't be available"
+ if library_path == "":
+ print "Consider setting g:clang_library_path"
+ else:
+ print "Are you sure '%s' contains libclang?" % library_path
return 0
global builtinHeaderPath
builtinHeaderPath = None
if not canFindBuiltinHeaders(index):
builtinHeaderPath = getBuiltinHeaderPath(library_path)
- if not builtinHeaderPath and printWarnings:
+ if not builtinHeaderPath:
print "WARNING: libclang can not find the builtin includes."
print " This will cause slow code completion."
print " Please report the problem."

0 comments on commit 162279c

Please sign in to comment.