[llvm] [CI] Remove unused variable in code-format job (PR #165454)
Baranov Victor via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 30 13:38:31 PDT 2025
vbvictor wrote:
> Otherwise LGTM, but it would be good to test before landing.
Run successfully.
```diff
Running: git-clang-format-21 --diff --extensions cpp -- clang-tools-extra/clang-tidy/ClangTidy.cpp
error: clang-format exited with code 1
diff --git a/clang-tools-extra/clang-tidy/ClangTidy.cpp b/clang-tools-extra/clang-tidy/ClangTidy.cpp
index 005529497a25..7e18f3806a14 100644
--- a/clang-tools-extra/clang-tidy/ClangTidy.cpp
+++ b/clang-tools-extra/clang-tidy/ClangTidy.cpp
@@ -70,7 +70,7 @@ class AnalyzerDiagnosticConsumer : public ento::PathDiagnosticConsumer {
public:
AnalyzerDiagnosticConsumer(ClangTidyContext &Context) : Context(Context) {}
- void FlushDiagnosticsImpl(std::vector<const ento::PathDiagnostic *> &Diags,
+ void FlushDiagnosticsImpl(std::vector<const ento::PathDiagnostic *> &Diags,
FilesMade *FilesMade) override {
for (const ento::PathDiagnostic *PD : Diags) {
SmallString<64> CheckName(AnalyzerCheckNamePrefix);
Warning: C/C++ code formatter, clang-format detected some issues with your code formatting...
Running: git diff -U0 --pickaxe-regex -S '([^a-zA-Z0-9#_-]undef([^a-zA-Z0-9_-]|$)|UndefValue::get)' clang-tools-extra/clang-tidy/ClangTidy.cpp
Pre-commit format hook failed, rerun with FORMAT_HOOK_VERBOSE=1 environment for verbose output
```
https://github.com/llvm/llvm-project/pull/165454
More information about the llvm-commits
mailing list