[clang-tools-extra] [clang-tidy] Add modernize-use-return-value check (PR #182081)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 18 10:47:40 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/modernize/UseReturnValueCheck.cpp clang-tools-extra/clang-tidy/modernize/UseReturnValueCheck.h clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.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/modernize/UseReturnValueCheck.cpp:23:20: warning: function 'findSingleOutParam' is declared in an anonymous namespace; prefer using 'static' for restricting visibility [llvm-prefer-static-over-anonymous-namespace]
23 | const ParmVarDecl *findSingleOutParam(const FunctionDecl *Func) {
| ^
```
</details>
https://github.com/llvm/llvm-project/pull/182081
More information about the cfe-commits
mailing list