Rip-Rip/clang_complete — pull request #191 by tobig (2012-08-18 23:15:47+00:00)
Title: This updates the cindex.py file to the latest version from clang

The only remaining diff is:

```
@@ -62,7 +62,6 @@
#
# o implement additional SourceLocation, SourceRange, and File methods.

-import sys
from ctypes import *
import collections

@@ -74,16 +73,12 @@
# CIndex library. It could be on path or elsewhere, or versioned, etc.
import platform
name = platform.system()
- path = sys.argv[0]
- if path != '':
- path += '/'
if name == 'Darwin':
- path += 'libclang.dylib'
+ return cdll.LoadLibrary('libclang.dylib')
elif name == 'Windows':
- path += 'libclang.dll'
+ return cdll.LoadLibrary('libclang.dll')
else:
- path += 'libclang.so'
- return cdll.LoadLibrary(path)
+ return cdll.LoadLibrary('libclang.so')
```

We need to find a better way to define where libclang is located to be able to remove this hack.