[PATCH] Use 'auto' with 'new' expressions

Dmitri Gribenko gribozavr at gmail.com
Mon Feb 11 10:03:32 PST 2013



================
Comment at: test/cpp11-migrate/UseAuto/new.cpp:15-17
@@ +14,5 @@
+
+  MyType *b = new MyDerivedType();
+  // CHECK: MyType *b = new MyDerivedType();
+
+  void *c = new MyType();
----------------
Please add tests with:
* const and volatile qualifiers;
* new[];
* `MyType *a(new MyType);`
* same as previous but with C++11 uniform initialization.



http://llvm-reviews.chandlerc.com/D393



More information about the cfe-commits mailing list