[llvm] [NFC] clang-format utils/TableGen (PR #80973)
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 8 00:41:28 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 '*':
----------------
chapuni wrote:
I prefer oneline pattern :)
https://github.com/llvm/llvm-project/pull/80973
More information about the llvm-commits
mailing list