Adds the 'consumable' attribute that can be attached to classes. This replaces the previous method of scanning a class's methods to see if any of them have consumed analysis attributes attached to them. If consumed analysis attributes are attached to methods of a class that isn't marked 'consumable' a warning is generated.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Sema/SemaDeclAttr.cpp | ||
---|---|---|
981 | This block of code seems to have been cut-and-pasted 4 times. Can you factor it into a separate function? |
lib/Sema/SemaDeclAttr.cpp | ||
---|---|---|
1002 | Most of the check is still duplicated. I was thinking of: if (!checkThisTypeIsConsumable(S, D)) return; |
Comment Actions
Why does this no longer apply to CXXConstructors when it used to previously?
Aside from not understanding that, LGTM!
~Aaron
This block of code seems to have been cut-and-pasted 4 times. Can you factor it into a separate function?