[clang] Use existing AvailabilityKind enum for code completion availability (PR #160296)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 23 22:40:30 PDT 2025
================
@@ -3039,6 +3039,16 @@ class _CXUnsavedFile(Structure):
}
+# Converting the new enum names (full upper-case, underscore separated)
+# to the old ones (separated by capitalization), e.g. RESULT_TYPE -> ResultType
+def _kind_to_old_name(kind: BaseEnumeration):
----------------
Endilll wrote:
```suggestion
def _convert_screaming_caps_to_pascal_case(kind: BaseEnumeration):
```
https://github.com/llvm/llvm-project/pull/160296
More information about the cfe-commits
mailing list