[clang] bad error message on incorrect string literal #18079 (PR #81670)

via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 14 11:09:38 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 4e005515ec5ecedf2cd986097e45cab59f9914da ac8b99309b07b6c7114dfbf784a46d2fb5d9dcc4 -- clang/test/Lexer/raw-string-dlim-newline.cpp clang/lib/Lex/Lexer.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp
index 95f39df7a4..7600ce3911 100644
--- a/clang/lib/Lex/Lexer.cpp
+++ b/clang/lib/Lex/Lexer.cpp
@@ -2275,7 +2275,7 @@ bool Lexer::LexRawStringLiteral(Token &Result, const char *CurPtr,
           << StringRef(PrefixEnd, 1);
       } else {
         Diag(PrefixEnd, diag::err_invalid_nexline_raw_delim);
-	}
+      }
     }
 
     // Search for the next '"' in hopes of salvaging the lexer. Unfortunately,

``````````

</details>


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


More information about the cfe-commits mailing list