[PATCH] CONSUMABLE class attribute

Delesley Hutchins delesley at google.com
Fri Aug 30 14:22:13 PDT 2013



================
Comment at: lib/Sema/SemaDeclAttr.cpp:1002
@@ +1001,3 @@
+  
+  if (const CXXRecordDecl *RD = ThisType->getAsCXXRecordDecl()) {
+    if (!RD->hasAttr<ConsumableAttr>()) {
----------------
Most of the check is still duplicated.  I was thinking of:

if (!checkThisTypeIsConsumable(S, D))
  return;



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



More information about the cfe-commits mailing list