summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/pascal-wchar-string.c
diff options
context:
space:
mode:
authorFelix Berger <flx@google.com>2016-05-31 00:25:57 +0000
committerFelix Berger <flx@google.com>2016-05-31 00:25:57 +0000
commit98e4019a58d7e20e38783d4f64dca30b139bc86b (patch)
tree0647ff11f3bb5ed17e662fb97834539fd5e9925c /clang/test/CodeGen/pascal-wchar-string.c
parent4c46801fa70940e3be8c6a7789c63a124a65de81 (diff)
downloadbcm5719-llvm-98e4019a58d7e20e38783d4f64dca30b139bc86b.tar.gz
bcm5719-llvm-98e4019a58d7e20e38783d4f64dca30b139bc86b.zip
[clang-tidy] UnnecessaryCopyInitialization - Extend to trigger on non-const "this" object argument if it is not modified.
Summary: Also trigger the check in the following case: void foo() { ExpensiveToCopy Obj; const auto UnnecessaryCopy = Obj.constReference(); Obj.onlyUsedAsConst(); } i.e. when the object the method is called on is not const but is never modified. Reviewers: alexfh, fowles Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D20010 llvm-svn: 271239
Diffstat (limited to 'clang/test/CodeGen/pascal-wchar-string.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud