faisalv added inline comments.

================
Comment at: lib/Sema/SemaTemplate.cpp:528
@@ +527,3 @@
+                [&StringifiedTemplateArgs, this](const TemplateArgument &TA) {
+    if (const bool IsFirst = !StringifiedTemplateArgs.size())
+      StringifiedTemplateArgs = "<";
----------------
majnemer wrote:
> You could use `StringifiedTemplateArgs.empty()` instead.
Aah yes - Will do - Thanks!

================
Comment at: lib/Sema/SemaTemplate.cpp:529
@@ +528,3 @@
+    if (const bool IsFirst = !StringifiedTemplateArgs.size())
+      StringifiedTemplateArgs = "<";
+    else
----------------
majnemer wrote:
> You could hoist this bit out of the `std::for_each`
Well - I would still need some way to know that this is not the first 
iteration.  I was trying to avoid declaring another variable or checking that 
the string was equal to another string (I thought the empty check would be 
reasonable) -do you feel strongly about the hoist?


http://reviews.llvm.org/D15005



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

Reply via email to