[clang] [clang] Add source range to 'use of undeclared identifier' diagnostics (PR #117671)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 26 01:28:12 PST 2024
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/117671 at github.com>
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 6f16a8bf17ac9a171b5435ee53c3d2bef657bdad 894748176d95d1141b7c6fb27407c283e9d7a542 --extensions cpp -- clang/lib/Frontend/DiagnosticRenderer.cpp clang/lib/Sema/SemaExpr.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Frontend/DiagnosticRenderer.cpp b/clang/lib/Frontend/DiagnosticRenderer.cpp
index 063af34f58..013eb59793 100644
--- a/clang/lib/Frontend/DiagnosticRenderer.cpp
+++ b/clang/lib/Frontend/DiagnosticRenderer.cpp
@@ -496,7 +496,7 @@ static bool checkRangesForMacroArgExpansion(FullSourceLoc Loc,
// Count all valid ranges.
unsigned ValidCount = 0;
- // llvm::count_if(Ranges, [](const auto &R) { return R.isValid(); });
+ // llvm::count_if(Ranges, [](const auto &R) { return R.isValid(); });
// llvm::errs() << "ValidCount: " << ValidCount << '\n';
if (ValidCount > SpellingRanges.size())
``````````
</details>
https://github.com/llvm/llvm-project/pull/117671
More information about the cfe-commits
mailing list