diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-02-17 21:27:41 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-02-17 21:27:41 +0000 |
commit | 3f477eabe90c55ad65ab70b1a3abd77060fbec06 (patch) | |
tree | cdf19e4b83ad671a8dc549fc8b48e84db465f7a1 | |
parent | 2cd00932b9b5403047139ce8cfaa3ae47966f894 (diff) |
Change GNUInlineAttr definition to just use DEF_SIMPLE_ATTR.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96517 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/Attr.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/include/clang/AST/Attr.h b/include/clang/AST/Attr.h index 10999cb467..8792bb2e85 100644 --- a/include/clang/AST/Attr.h +++ b/include/clang/AST/Attr.h @@ -301,19 +301,6 @@ public: static bool classof(const DestructorAttr *A) { return true; } }; -class GNUInlineAttr : public Attr { -public: - GNUInlineAttr() : Attr(GNUInline) {} - - virtual Attr *clone(ASTContext &C) const; - - // Implement isa/cast/dyncast/etc. - static bool classof(const Attr *A) { - return A->getKind() == GNUInline; - } - static bool classof(const GNUInlineAttr *A) { return true; } -}; - class IBOutletAttr : public Attr { public: IBOutletAttr() : Attr(IBOutletKind) {} @@ -340,11 +327,12 @@ public: static bool classof(const IBActionAttr *A) { return true; } }; -DEF_SIMPLE_ATTR(Malloc); -DEF_SIMPLE_ATTR(NoReturn); DEF_SIMPLE_ATTR(AnalyzerNoReturn); DEF_SIMPLE_ATTR(Deprecated); DEF_SIMPLE_ATTR(Final); +DEF_SIMPLE_ATTR(GNUInline); +DEF_SIMPLE_ATTR(Malloc); +DEF_SIMPLE_ATTR(NoReturn); class SectionAttr : public AttrWithString { public: |