summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/algorithms
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2016-06-03 21:22:58 +0000
committerAlexander Kornienko <alexfh@google.com>2016-06-03 21:22:58 +0000
commitc0308c451bc1f2b19ea4c60b3606edf6e1651731 (patch)
treee8dc44a114298d15f1e4a5a26638b2f88403e76e /libcxx/test/std/algorithms
parent94edaaaefba9727db12206de96c9046fe1629646 (diff)
downloadbcm5719-llvm-c0308c451bc1f2b19ea4c60b3606edf6e1651731.tar.gz
bcm5719-llvm-c0308c451bc1f2b19ea4c60b3606edf6e1651731.zip
[clang-tidy] modernize-use-auto: don't remove stars by default
Summary: By default, modernize-use-auto check will retain stars when replacing an explicit type with `auto`: `MyType *t = new MyType;` will be changed to `auto *t = new MyType;`, thus resulting in more consistency with the recommendations to use `auto *` for iterating over pointers in range-based for loops: http://llvm.org/docs/CodingStandards.html#beware-unnecessary-copies-with-auto The new `RemoveStars` option allows to revert to the old behavior: with the new option turned on the check will change `MyType *t = new MyType;` to `auto t = new MyType;`. Reviewers: aaron.ballman, sbenza Subscribers: Eugene.Zelenko, cfe-commits Differential Revision: http://reviews.llvm.org/D20917 llvm-svn: 271739
Diffstat (limited to 'libcxx/test/std/algorithms')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud