arphaman added a comment.

Thanks, it looks much better! A couple more comments:



================
Comment at: lib/Index/USRGeneration.cpp:819
     }
+    if (const ArrayType *const AT = dyn_cast<ArrayType>(T)) {
+      Out << "{";
----------------
You can use `const auto *` here.


================
Comment at: lib/Index/USRGeneration.cpp:826
+      }
+      if (const ConstantArrayType* const CAT = dyn_cast<ConstantArrayType>(T)) 
{
+        Out << CAT->getSize();
----------------
Ditto. Also, the braces are redundant.


================
Comment at: lib/Index/USRGeneration.cpp:829
+      }
+      Out << "}";
+      T = AT->getElementType();
----------------
I don't think we need the terminating character.


https://reviews.llvm.org/D38643



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to