aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2015-12-30 10:24:40 +0000
committerAlexander Kornienko <alexfh@google.com>2015-12-30 10:24:40 +0000
commitb959f4c33882b1f5150bb54a1664befad4251af8 (patch)
tree62369d8b12b8d3c3cc8e91e29816205cc8099d2b /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent779c66f3ca9e51efd0b8eaac75347df4b109c7d2 (diff)
downloadllvm-b959f4c33882b1f5150bb54a1664befad4251af8.zip
llvm-b959f4c33882b1f5150bb54a1664befad4251af8.tar.gz
llvm-b959f4c33882b1f5150bb54a1664befad4251af8.tar.bz2
[clang-tidy] Add UnnecessaryCopyInitialization check to new "performance" module in ClangTidy
Summary: The patch adds a new ClangTidy check that detects when expensive-to-copy types are unnecessarily copy initialized from a const reference that has the same or are larger scope than the copy. It currently only detects this when the copied variable is const qualified. But this will be extended to non const variables if they are only used in a const fashion. Reviewers: alexfh Subscribers: cfe-commits Patch by Felix Berger! Differential Revision: http://reviews.llvm.org/D15623 llvm-svn: 256632
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions