[PATCH] D12287: Add replace-auto_ptr check.

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 25 05:57:33 PDT 2015


alexfh accepted this revision.
alexfh added a comment.
This revision is now accepted and ready to land.

Looks good with one nit.

Thank you!


================
Comment at: test/clang-tidy/modernize-replace-auto-ptr.cpp:12
@@ +11,3 @@
+std::auto_ptr<Derived> create_derived_ptr();
+// CHECK-MESSAGES: :[[@LINE-1]]:6: warning: auto_ptr is deprecated, use unique_ptr instead
+// CHECK-FIXES: std::unique_ptr<Derived> create_derived_ptr();
----------------
Please use the full message including the [check-name] once. Please also truncate all other patterns after `deprecated,` to make them fit 80 columns.


http://reviews.llvm.org/D12287





More information about the cfe-commits mailing list