diff options
author | Felix Berger <flx@google.com> | 2020-10-22 14:38:38 -0400 |
---|---|---|
committer | Felix Berger <flx@google.com> | 2020-11-16 17:08:18 -0500 |
commit | ace9653c11c6308401dcda2e8b26bf97e6e66e30 (patch) | |
tree | c85aa09ecdbe2dbe51caeb89a37f79e692662126 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | f375885ab86d1b3e82269725c8e9aa49f347b4a7 (diff) | |
download | llvm-ace9653c11c6308401dcda2e8b26bf97e6e66e30.zip llvm-ace9653c11c6308401dcda2e8b26bf97e6e66e30.tar.gz llvm-ace9653c11c6308401dcda2e8b26bf97e6e66e30.tar.bz2 |
[clang-tidy] performance-unnecessary-copy-initialization: Check for const reference arguments that are replaced template parameter type.
This fixes false positive cases where a non-const reference is passed to a
std::function but interpreted as a const reference.
Fix the definition of the fake std::function added in the test to match
std::function and make the bug reproducible.
Reviewed-by: aaron.ballman
Differential Revision: https://reviews.llvm.org/D90042
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions