summaryrefslogtreecommitdiffstats
path: root/bindings/python/clang
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-01-30 23:58:39 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-01-30 23:58:39 +0000
commit2791dfc0fcbff64dbdaccde433b75c7226528b8d (patch)
tree2612b8fd7296eb5504ede5e9a2c2b0d979eb603c /bindings/python/clang
parent90a6b9e1e4d4d1995ada044e319d6e722b07a6b4 (diff)
cindex/Python: Update Index.create for removal of displayDiagnostics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94931 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/python/clang')
-rw-r--r--bindings/python/clang/cindex.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py
index 1734ddbcaf..7398cbbe55 100644
--- a/bindings/python/clang/cindex.py
+++ b/bindings/python/clang/cindex.py
@@ -497,14 +497,13 @@ class Index(ClangObject):
"""
@staticmethod
- def create(excludeDecls=False, displayDiags=False):
+ def create(excludeDecls=False):
"""
Create a new Index.
Parameters:
excludeDecls -- Exclude local declarations from translation units.
- displayDiags -- Display diagnostics during translation unit creation.
"""
- return Index(Index_create(excludeDecls, displayDiags))
+ return Index(Index_create(excludeDecls))
def __del__(self):
Index_dispose(self)
@@ -682,7 +681,7 @@ Cursor_visit.restype = c_uint
# Index Functions
Index_create = lib.clang_createIndex
-Index_create.argtypes = [c_int, c_int]
+Index_create.argtypes = [c_int]
Index_create.restype = c_object_p
Index_dispose = lib.clang_disposeIndex