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/misc/UseInternalLinkageCheck.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/misc/UseInternalLinkageCheck.cpp:146:9: error:
reference to non-static member function must be called; did you mean to call it
with no arguments? [clang-diagnostic-error]
146 | if (getLangOpts.CPlusPlus && FD.isExternC())
| ^~~~~~~~~~~
| ()
clang-tools-extra/clang-tidy/misc/UseInternalLinkageCheck.cpp:146:36: error:
member reference type 'clang::FunctionDecl const *' is a pointer; did you mean
to use '->'? [clang-diagnostic-error]
146 | if (getLangOpts.CPlusPlus && FD.isExternC())
| ~~^
| ->
clang-tools-extra/clang-tidy/misc/UseInternalLinkageCheck.cpp:158:9: error:
reference to non-static member function must be called; did you mean to call it
with no arguments? [clang-diagnostic-error]
158 | if (getLangOpts.CPlusPlus && FD.isExternC())
| ^~~~~~~~~~~
| ()
clang-tools-extra/clang-tidy/misc/UseInternalLinkageCheck.cpp:158:34: error:
use of undeclared identifier 'FD' [clang-diagnostic-error]
158 | if (getLangOpts.CPlusPlus && FD.isExternC())
| ^~
```
</details>
https://github.com/llvm/llvm-project/pull/173196
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits