[clang-tools-extra] [clang-tidy] identifier-naming: TrimPrefixSuffix option to avoid concatenating multiple pre(suf)fixes (PR #181502)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 14 20:45:09 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/readability/IdentifierNamingCheck.cpp clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.h |
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/readability/IdentifierNamingCheck.cpp:280:5: warning: variable 'IgnoredRegexpStr' of type 'std::optional<StringRef>' can be declared 'const' [misc-const-correctness]
280 | std::optional<StringRef> IgnoredRegexpStr = Options.get(StyleString);
| ^
| const
```
</details>
https://github.com/llvm/llvm-project/pull/181502
More information about the cfe-commits
mailing list