[PATCH] D15400: [Clang] Use autos in lib/AST/Type.cpp

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 10 11:25:33 PST 2015


aaron.ballman added inline comments.

================
Comment at: lib/AST/Type.cpp:2016
@@ -2019,3 +2015,3 @@
   case Type::Record:
-    if (CXXRecordDecl *ClassDecl
+    if (const auto *ClassDecl
           = dyn_cast<CXXRecordDecl>(cast<RecordType>(CanonicalType)->getDecl()))
----------------
Not certain this is an improvement due to the type information being on a different line.


Repository:
  rL LLVM

http://reviews.llvm.org/D15400





More information about the cfe-commits mailing list