Issue |
140054
|
Summary |
[clang-tidy] "bugprone-return-const-ref-from-parameter" - should catch reference-like returns
|
Labels |
clang-tidy
|
Assignees |
|
Reporter |
denzor200
|
This check is expected to show warning in this function:
```
std::reference_wrapper<const S> fn_wrapper(const S &a) {
return a;
}
```
But it didn't. [Full snippet](https://godbolt.org/z/fxeqYsxGE)
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs