[clang] [libclang/python] Fix cindex test for cpp lang (PR #172368)

Thomas Applencourt via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 15 12:59:37 PST 2025


https://github.com/TApplencourt created https://github.com/llvm/llvm-project/pull/172368

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

>From 18d0913c968711d1853cdcf343478ae5dd6810ff Mon Sep 17 00:00:00 2001
From: tapplencourt <tapplencourt at anl.gov>
Date: Mon, 15 Dec 2025 20:57:03 +0000
Subject: [PATCH] Rename cindex test for cpp lang

---
 clang/bindings/python/tests/cindex/test_cursor_language.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)



More information about the cfe-commits mailing list