[clang] [clang][scandeps] Improve handling of rawstrings. (PR #139504)
via cfe-commits
cfe-commits at lists.llvm.org
Sun May 11 23:44:26 PDT 2025
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 HEAD~1 HEAD --extensions cpp -- clang/test/ClangScanDeps/raw-strings.cpp clang/lib/Lex/DependencyDirectivesScanner.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Lex/DependencyDirectivesScanner.cpp b/clang/lib/Lex/DependencyDirectivesScanner.cpp
index 86e860abd..6565e77af 100644
--- a/clang/lib/Lex/DependencyDirectivesScanner.cpp
+++ b/clang/lib/Lex/DependencyDirectivesScanner.cpp
@@ -254,7 +254,7 @@ static char previousChar(const char *First, const char *&Current) {
static void skipRawString(const char *&First, const char *const End) {
assert(First[0] == '"');
- //assert(First[-1] == 'R');
+ // assert(First[-1] == 'R');
const char *Last = ++First;
while (Last != End && *Last != '(')
``````````
</details>
https://github.com/llvm/llvm-project/pull/139504
More information about the cfe-commits
mailing list