Issue |
52801
|
Summary |
Clang-Tidy: Assignment to non const reference variable
|
Labels |
new issue
|
Assignees |
|
Reporter |
PlasmaMichael
|
Hi,
A very important static analysis feature for C++ is certainly missing, here an example:
`const var x = class.Get();`
If the function returns a reference, the line should be:
`const var& x = class.Get();`
That avoid a copy.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs