[clang-tools-extra] [clang-tidy] Fix some false positive in bugprone-move-forwarding-reference (PR #191435)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 10 07:50:56 PDT 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/bugprone/MoveForwardingReferenceCheck.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/bugprone/MoveForwardingReferenceCheck.cpp:22:1: warning: anonymous namespace not terminated with a closing comment [llvm-namespace-comment]
22 | }
| ^
| // namespace
clang-tools-extra/clang-tidy/bugprone/MoveForwardingReferenceCheck.cpp:16:11: note: anonymous namespace starts here
16 | namespace {
| ^
```
</details>
https://github.com/llvm/llvm-project/pull/191435
More information about the cfe-commits
mailing list