[clang] [libclang/python] export libclang version to the bindings (PR #86931)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 21 03:14:46 PDT 2026
================
@@ -0,0 +1,12 @@
+import unittest
+import re
+from clang.cindex import Config
+
+
+class TestClangVersion(unittest.TestCase):
+ def test_get_version_format(self):
+ conf = Config()
+ version = conf.get_version()
+
+ self.assertTrue(version.startswith("clang version"))
----------------
Endilll wrote:
I think this assert is subsumed by the next one
https://github.com/llvm/llvm-project/pull/86931
More information about the cfe-commits
mailing list