aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorFelix Berger <flx@google.com>2020-10-22 14:38:38 -0400
committerFelix Berger <flx@google.com>2020-11-16 17:08:18 -0500
commitace9653c11c6308401dcda2e8b26bf97e6e66e30 (patch)
treec85aa09ecdbe2dbe51caeb89a37f79e692662126 /clang/lib/Frontend/CompilerInvocation.cpp
parentf375885ab86d1b3e82269725c8e9aa49f347b4a7 (diff)
downloadllvm-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