]> granicus.if.org Git - clang/commitdiff
Move InheritableAttr::isInherited to Attr
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 26 Jan 2011 18:07:13 +0000 (18:07 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 26 Jan 2011 18:07:13 +0000 (18:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124299 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Attr.h

index a6d23e5ff0425db70ca92de3ba83a87995b40310..67968fde2d6bdc7d94134907eb5a10de4f977654 100644 (file)
@@ -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.