[PATCH] CONSUMABLE class attribute

Christian Wailes chriswailes at google.com
Fri Aug 30 11:33:56 PDT 2013


Hi delesley, dblaikie, aaron.ballman,

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.

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

Files:
  include/clang/Analysis/Analyses/Consumed.h
  include/clang/Basic/Attr.td
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/Analysis/Consumed.cpp
  lib/Sema/SemaDeclAttr.cpp
  test/SemaCXX/warn-consumed-analysis-strict.cpp
  test/SemaCXX/warn-consumed-analysis.cpp
  test/SemaCXX/warn-consumed-parsing.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1563.1.patch
Type: text/x-patch
Size: 15918 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130830/1318f76a/attachment.bin>


More information about the cfe-commits mailing list