Home | History | Annotate | Download | only in AST

Lines Matching refs:attr

1 //===--- Attr.h - Classes for representing attributes ----------*- C++ -*-===//
10 // This file defines the Attr interface and subclasses.
40 /// Attr - This represents one attribute.
41 class Attr {
48 /// attribute defined in Attr.td file.
55 virtual ~Attr();
76 Attr(attr::Kind AK, SourceRange R, unsigned SpellingListIndex = 0)
82 attr::Kind getKind() const {
83 return static_cast<attr::Kind>(AttrKind);
98 virtual Attr *clone(ASTContext &C) const = 0;
107 class InheritableAttr : public Attr {
110 InheritableAttr(attr::Kind AK, SourceRange R, unsigned SpellingListIndex = 0)
111 : Attr(AK, R, SpellingListIndex) {}
117 static bool classof(const Attr *A) {
118 return A->getKind() <= attr::LAST_INHERITABLE;
125 InheritableParamAttr(attr::Kind AK, SourceRange R,
131 static bool classof(const Attr *A) {
134 return A->getKind() <= attr::LAST_INHERITABLE_PARAM;
141 MSInheritanceAttr(attr::Kind AK, SourceRange R, unsigned SpellingListIndex = 0)
146 static bool classof(const Attr *A) {
148 return (A->getKind() <= attr::LAST_MS_INHERITANCE &&
149 A->getKind() > attr::LAST_INHERITABLE_PARAM);