]> granicus.if.org Git - clang/commitdiff
cindex/Python: Update Index.create for removal of displayDiagnostics.
authorDaniel Dunbar <daniel@zuster.org>
Sat, 30 Jan 2010 23:58:39 +0000 (23:58 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 30 Jan 2010 23:58:39 +0000 (23:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94931 91177308-0d34-0410-b5e6-96231b3b80d8

bindings/python/clang/cindex.py
bindings/python/tests/cindex/test_cursor.py

index 1734ddbcaf714c4021b253ce0e854d2d3edd3097..7398cbbe558f8a5ae99c192c80fe53f4711404fb 100644 (file)
@@ -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
index c0f778f0b89dcd7440deef7fc4d7a4944295681d..a653ba7bf28ef53dc5ec6e487231740a49f5b6db 100644 (file)
@@ -24,7 +24,7 @@ void f0(int a0, int a1) {
 """
 
 def test_get_children():
-    index = Index.create(1, 1)
+    index = Index.create()
     tu = index.parse('t.c', unsaved_files = [('t.c',kInput)])
     
     # Skip until past start_decl.