[PATCH] D13504: Prevent modernize-use-auto from emitting a warning when 'auto' was already being used.

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 7 02:51:22 PDT 2015


alexfh added inline comments.

================
Comment at: test/clang-tidy/modernize-use-auto-new.cpp:100
@@ -98,1 +99,3 @@
+  // Don't warn when 'auto' is already being used.
+  auto aut = new MyType();
 }
----------------
Please add tests for `auto *` and `const auto *`.


http://reviews.llvm.org/D13504





More information about the cfe-commits mailing list