dblaikie accepted this revision.
dblaikie added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/Sema/SemaDeclAttr.cpp:1249
+  Diag(A->getLoc(), diag::warn_consumable_attr_for_unconsumable_type) <<
+    A << (isa<ParmVarDecl>(D) ? 0 : 1) << Type;
+  return false;
----------------
Do you need the "? 0 : 1" here? Or would the boolean value be sufficient to use 
directly?


================
Comment at: lib/Sema/SemaTemplateInstantiateDecl.cpp:609-610
 
+    if (isa<ParamTypestateAttr>(TmplAttr) || 
isa<ReturnTypestateAttr>(TmplAttr)) {
+      if (!CheckParamOrReturnTypestateAttr(TmplAttr, New, Tmpl))
+        continue; // don't add
----------------
Collapse these two conditions into one 'if', perhaps?


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67740/new/

https://reviews.llvm.org/D67740



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

Reply via email to