[clang] [libclang/python] Fix cindex test for cpp lang (PR #172368)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 15 13:00:07 PST 2025
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
More information about the cfe-commits
mailing list