Issue |
133562
|
Summary |
[clang-tidy] `misc-const-correctness` false positive
|
Labels |
clang-tidy,
false-positive
|
Assignees |
|
Reporter |
tearfur
|
https://godbolt.org/z/dbKn7dWYz
```
<source>:8:5: warning: variable 'vz' of type 'size_t' (aka 'unsigned long') can be declared 'const' [misc-const-correctness]
8 | size_t vz = static_cast<size_t>(v);
| ^
| const
```
If I change the problematic line to `auto vz = static_cast<size_t>(v);`, the warning goes away.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs