forked from OSchip/llvm-project
cindex/Python: Update Index.create for removal of displayDiagnostics.
llvm-svn: 94931
This commit is contained in:
parent
83a2354c8b
commit
1e079a48ad
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue