llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Thomas Applencourt (TApplencourt)

<details>
<summary>Changes</summary>

Fix typo in cindex.py where the C++ support test was incorrectly named test_c 
instead of test_cpp

---
Full diff: https://github.com/llvm/llvm-project/pull/172368.diff


1 Files Affected:

- (modified) clang/bindings/python/tests/cindex/test_cursor_language.py (+1-1) 


``````````diff
diff --git a/clang/bindings/python/tests/cindex/test_cursor_language.py 
b/clang/bindings/python/tests/cindex/test_cursor_language.py
index de07a7bdeef40..fa2a678f736a9 100644
--- a/clang/bindings/python/tests/cindex/test_cursor_language.py
+++ b/clang/bindings/python/tests/cindex/test_cursor_language.py
@@ -16,7 +16,7 @@ def test_c(self):
         main_func = get_cursor(tu.cursor, "a")
         self.assertEqual(main_func.language, LanguageKind.C)
 
-    def test_c(self):
+    def test_cpp(self):
         tu = get_tu("class Cls {};", lang="cpp")
         main_func = get_cursor(tu.cursor, "Cls")
         self.assertEqual(main_func.language, LanguageKind.C_PLUS_PLUS)

``````````

</details>


https://github.com/llvm/llvm-project/pull/172368
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to