diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-02-17 02:37:45 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-02-17 02:37:45 +0000 |
commit | efbddd23173ea5633cc8a004f1014c68c3ac6593 (patch) | |
tree | 90d3a87eab7cd5059cbb4904cc5cf4fd586cd874 /include/clang/AST/Attr.h | |
parent | a446ecd13a9cd2c150baa5d3db4f817db4b1eba8 (diff) |
Add IBAction attribute to keep the IBOutlet attribute company.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/Attr.h')
-rw-r--r-- | include/clang/AST/Attr.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/clang/AST/Attr.h b/include/clang/AST/Attr.h index 37225907c6..10999cb467 100644 --- a/include/clang/AST/Attr.h +++ b/include/clang/AST/Attr.h @@ -62,7 +62,8 @@ public: FormatArg, GNUInline, Hiding, - IBOutletKind, // Clang-specific. Use "Kind" suffix to not conflict with + IBOutletKind, // Clang-specific. Use "Kind" suffix to not conflict w/ macro. + IBActionKind, // Clang-specific. Use "Kind" suffix to not conflict w/ macro. Malloc, NoDebug, NoInline, @@ -326,6 +327,19 @@ public: static bool classof(const IBOutletAttr *A) { return true; } }; +class IBActionAttr : public Attr { +public: + IBActionAttr() : Attr(IBActionKind) {} + + virtual Attr *clone(ASTContext &C) const; + + // Implement isa/cast/dyncast/etc. + static bool classof(const Attr *A) { + return A->getKind() == IBActionKind; + } + static bool classof(const IBActionAttr *A) { return true; } +}; + DEF_SIMPLE_ATTR(Malloc); DEF_SIMPLE_ATTR(NoReturn); DEF_SIMPLE_ATTR(AnalyzerNoReturn); |