[clang] Use existing AvailabilityKind enum for code completion availability (PR #160296)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 30 11:15:53 PDT 2025


================
@@ -3039,6 +3039,18 @@ class _CXUnsavedFile(Structure):
 }
 
 
+def _convert_screaming_caps_to_pascal_case(kind: BaseEnumeration):
+    """
+    Converting the new enum names (full upper-case, underscore separated)
+    to the old ones (separated by capitalization), e.g. RESULT_TYPE -> ResultType
+    """
+    # Remove underscores
+    components = kind.name.split("_")
----------------
Endilll wrote:

Now that this function has a new name, I found myself confused why it takes an enumerator and extracts a string out of it. I think it should just take a string instead.

https://github.com/llvm/llvm-project/pull/160296


More information about the cfe-commits mailing list