]> granicus.if.org Git - clang/commit
Consumed analysis: add 'consumable' class attribute.
authorDeLesley Hutchins <delesley@google.com>
Fri, 30 Aug 2013 22:56:34 +0000 (22:56 +0000)
committerDeLesley Hutchins <delesley@google.com>
Fri, 30 Aug 2013 22:56:34 +0000 (22:56 +0000)
commitc55bee6e278d888d7a5d29fc17df6a9ae1e8b7d3
treeb5c7c0d6805bf7b494f2a54e1b291ec7b7178dfe
parentbf3d71e85f7449161a414c2ec3410e60394bf38a
Consumed analysis: add 'consumable' class attribute.
Patch by chris.wailes@gmail.com

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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189702 91177308-0d34-0410-b5e6-96231b3b80d8
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