[llvm] [NFC] clang-format utils/TableGen (PR #80973)

Pierre van Houtryve via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 7 23:51:38 PST 2024


================
@@ -1116,15 +1109,33 @@ static std::string getEnumNameForToken(StringRef Str) {
 
   for (char C : Str) {
     switch (C) {
-    case '*': Res += "_STAR_"; break;
-    case '%': Res += "_PCT_"; break;
-    case ':': Res += "_COLON_"; break;
-    case '!': Res += "_EXCLAIM_"; break;
-    case '.': Res += "_DOT_"; break;
-    case '<': Res += "_LT_"; break;
-    case '>': Res += "_GT_"; break;
-    case '-': Res += "_MINUS_"; break;
-    case '#': Res += "_HASH_"; break;
+    case '*':
----------------
Pierre-vh wrote:

this type of change is a bit annoying, should I revert this one and add clang-format-off/on?

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


More information about the llvm-commits mailing list