[clang-tools-extra] DO NOT MERGE, demonstration of clang-tidy CI (PR #182702)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 21 13:21:37 PST 2026
github-actions[bot] wrote:
<!--LLVM CODE LINT COMMENT: clang-tidy-->
:warning: C/C++ code linter, clang-tidy found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
```bash
git diff -U0 origin/main...HEAD -- clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp |
python3 clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py -path build -p1 -quiet
```
</details>
<details>
<summary>
View the output from clang-tidy here.
</summary>
```
clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp:568:8: warning: invalid case style for variable 'anyInvalid' [readability-identifier-naming]
568 | bool anyInvalid = false;
| ^~~~~~~~~~
| AnyInvalid
569 | for (auto Key : OptionMap.keys()) {
570 | if (ValidOptions.contains(Key))
571 | continue;
572 | anyInvalid = true;
| ~~~~~~~~~~
| AnyInvalid
573 | auto &Output = llvm::WithColor::warning(llvm::errs(), Source)
574 | << "unknown check option '" << Key << '\'';
575 | const llvm::StringRef Closest = closest(Key, ValidOptions);
576 | if (!Closest.empty())
577 | Output << "; did you mean '" << Closest << '\'';
578 | Output << VerifyConfigWarningEnd;
579 | }
580 | return anyInvalid;
| ~~~~~~~~~~
| AnyInvalid
```
</details>
https://github.com/llvm/llvm-project/pull/182702
More information about the cfe-commits
mailing list