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/ImplicitWideningOfMultiplicationResultCheck.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/ImplicitWideningOfMultiplicationResultCheck.cpp:39:7:
warning: static member accessed through instance
[readability-static-accessed-through-instance]
39 | if (Context.hasSameType(CanonTy, Context.LongTy))
| ^~~~~~~~
| clang::ASTContext::
clang-tools-extra/clang-tidy/bugprone/ImplicitWideningOfMultiplicationResultCheck.cpp:41:7:
warning: static member accessed through instance
[readability-static-accessed-through-instance]
41 | if (Context.hasSameType(CanonTy, Context.UnsignedLongTy))
| ^~~~~~~~
| clang::ASTContext::
clang-tools-extra/clang-tidy/bugprone/ImplicitWideningOfMultiplicationResultCheck.cpp:48:7:
warning: static member accessed through instance
[readability-static-accessed-through-instance]
48 | if (Context.hasSameType(CanonTy, Context.LongLongTy))
| ^~~~~~~~
| clang::ASTContext::
clang-tools-extra/clang-tidy/bugprone/ImplicitWideningOfMultiplicationResultCheck.cpp:50:7:
warning: static member accessed through instance
[readability-static-accessed-through-instance]
50 | if (Context.hasSameType(CanonTy, Context.UnsignedLongLongTy))
| ^~~~~~~~
| clang::ASTContext::
clang-tools-extra/clang-tidy/bugprone/ImplicitWideningOfMultiplicationResultCheck.cpp:74:3:
warning: variable 'LiteralParser' of type 'NumericLiteralParser' can be
declared 'const' [misc-const-correctness]
74 | NumericLiteralParser LiteralParser(LiteralText,
Literal->getLocation(),
| ^
| const
```
</details>
https://github.com/llvm/llvm-project/pull/198258
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits