Move InheritableAttr::isInherited to Attr
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124299 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/AST/Attr.h b/include/clang/AST/Attr.h
index a6d23e5..67968fd 100644
--- a/include/clang/AST/Attr.h
+++ b/include/clang/AST/Attr.h
@@ -96,6 +96,8 @@
SourceLocation getLocation() const { return Loc; }
void setLocation(SourceLocation L) { Loc = L; }
+ bool isInherited() const { return Inherited; }
+
// Clone this attribute.
virtual Attr* clone(ASTContext &C) const = 0;
@@ -109,7 +111,6 @@
: Attr(AK, L) {}
public:
- bool isInherited() const { return Inherited; }
void setInherited(bool I) { Inherited = I; }
// Implement isa/cast/dyncast/etc.