diff options
author | Alexander Kornienko <alexfh@google.com> | 2016-06-03 21:22:58 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2016-06-03 21:22:58 +0000 |
commit | c0308c451bc1f2b19ea4c60b3606edf6e1651731 (patch) | |
tree | e8dc44a114298d15f1e4a5a26638b2f88403e76e /libcxx/test/std/algorithms | |
parent | 94edaaaefba9727db12206de96c9046fe1629646 (diff) | |
download | bcm5719-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