]> granicus.if.org Git - clang/commitdiff
[cindex.py] Fix comments
authorArnaud A. de Grandmaison <arnaud.adegm@gmail.com>
Sat, 30 Jun 2012 20:43:37 +0000 (20:43 +0000)
committerArnaud A. de Grandmaison <arnaud.adegm@gmail.com>
Sat, 30 Jun 2012 20:43:37 +0000 (20:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159492 91177308-0d34-0410-b5e6-96231b3b80d8

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

index a3da4217de4d057f2dc6d8398f87cee1570fe271..23c1edeb4436b1e3f017a8c50e26a2a5ea858085 100644 (file)
@@ -2206,7 +2206,7 @@ class CompilationDatabase(ClangObject):
     def getCompileCommands(self, filename):
         """
         Get an iterable object providing all the CompileCommands available to
-        build filename. Raise KeyError if filename is not found in the database.
+        build filename. Returns None if filename is not found in the database.
         """
         return CompilationDatabase_getCompileCommands(self, filename)
 
index 84ac1f87d56fd90942f1293457afb278c3bf44ca..38de4b1c14e7492b971b61d3365c1f3a5de9abb6 100644 (file)
@@ -22,7 +22,7 @@ def test_create():
     cdb = CompilationDatabase.fromDirectory(kInputsDir)
 
 def test_lookup_fail():
-    """Check an assertion is raised when file lookup failed"""
+    """Check file lookup failure"""
     cdb = CompilationDatabase.fromDirectory(kInputsDir)
     assert cdb.getCompileCommands('file_do_not_exist.cpp') == None