[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
================
@@ -281,14 +306,19 @@ static void UnescapeString(std::string &Str) {
/// causes non-standard escape character warnings.
static void UnescapeAliasString(std::string &Str) {
for (unsigned i = 0; i != Str.size(); ++i) {
- if (Str[i] == '\\' && i != Str.size()-1) {
- switch (Str[i+1]) {
- default: continue; // Don't execute the code after the switch.
- case '{': Str[i] = '{'; break;
- case '}': Str[i] = '}'; break;
+ if (Str[i] == '\\' && i != Str.size() - 1) {
----------------
Pierre-vh wrote:
idem
https://github.com/llvm/llvm-project/pull/80973
More information about the llvm-commits
mailing list