[clang] [clang][TableGen] Fix Duplicate Entries in TableGen (PR #140828)
via cfe-commits
cfe-commits at lists.llvm.org
Wed May 21 08:01:34 PDT 2025
================
@@ -3727,12 +3734,26 @@ static void GenerateHasAttrSpellingStringSwitch(
}
}
- std::string TestStr = !Test.empty()
- ? Test + " ? " + itostr(Version) + " : 0"
- : itostr(Version);
- if (Scope.empty() || Scope == Spelling.nameSpace())
- OS << " .Case(\"" << Spelling.name() << "\", " << TestStr << ")\n";
+ std::string TestStr =
----------------
Mr-Anyone wrote:
before: https://pastebin.com/iwkWd3Bf
after: https://pastebin.com/eikjMpQt
https://github.com/llvm/llvm-project/pull/140828
More information about the cfe-commits
mailing list