[cfe-commits] r94931 - in /cfe/trunk/bindings/python: clang/cindex.py tests/cindex/test_cursor.py
Daniel Dunbar
daniel at zuster.org
Sat Jan 30 15:58:40 PST 2010
Author: ddunbar
Date: Sat Jan 30 17:58:39 2010
New Revision: 94931
URL: http://llvm.org/viewvc/llvm-project?rev=94931&view=rev
Log:
cindex/Python: Update Index.create for removal of displayDiagnostics.
Modified:
cfe/trunk/bindings/python/clang/cindex.py
cfe/trunk/bindings/python/tests/cindex/test_cursor.py
Modified: cfe/trunk/bindings/python/clang/cindex.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/bindings/python/clang/cindex.py?rev=94931&r1=94930&r2=94931&view=diff
==============================================================================
--- cfe/trunk/bindings/python/clang/cindex.py (original)
+++ cfe/trunk/bindings/python/clang/cindex.py Sat Jan 30 17:58:39 2010
@@ -497,14 +497,13 @@
"""
@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 @@
# 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
Modified: cfe/trunk/bindings/python/tests/cindex/test_cursor.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/bindings/python/tests/cindex/test_cursor.py?rev=94931&r1=94930&r2=94931&view=diff
==============================================================================
--- cfe/trunk/bindings/python/tests/cindex/test_cursor.py (original)
+++ cfe/trunk/bindings/python/tests/cindex/test_cursor.py Sat Jan 30 17:58:39 2010
@@ -24,7 +24,7 @@
"""
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.
More information about the cfe-commits
mailing list