aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/AST/Attr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/AST/Attr.h b/include/clang/AST/Attr.h
index a6d23e5ff0..67968fde2d 100644
--- a/include/clang/AST/Attr.h
+++ b/include/clang/AST/Attr.h
@@ -96,6 +96,8 @@ public:
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 @@ protected:
: Attr(AK, L) {}
public:
- bool isInherited() const { return Inherited; }
void setInherited(bool I) { Inherited = I; }
// Implement isa/cast/dyncast/etc.