================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to