| Issue |
58084
|
| Summary |
add option to limit `misc-const-correctness` to POD types
|
| Labels |
|
| Assignees |
|
| Reporter |
firewave
|
`misc-const-correctness` might expose cases where a variable is needlessly copied and the code should be modified instead of the variable made `const` (thus also hiding the pattern from future checks/reviews).
But this would not be an "issue" for POD types so I think it makes sense to add an option which limits the check to just such variables.
I am already on my n-th review of all the warnings now and I just realized that I could have already applied the changes for POD types.
CC @JonasToth
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs