================
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