diff options
Diffstat (limited to 'include/clang/AST/DeclFriend.h')
-rw-r--r-- | include/clang/AST/DeclFriend.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/AST/DeclFriend.h b/include/clang/AST/DeclFriend.h index a20625da56..85085c3080 100644 --- a/include/clang/AST/DeclFriend.h +++ b/include/clang/AST/DeclFriend.h @@ -59,10 +59,13 @@ private: FriendLoc(FriendL) { } + FriendDecl(EmptyShell Empty) : Decl(Decl::Friend, Empty), NextFriend(0) { } + public: static FriendDecl *Create(ASTContext &C, DeclContext *DC, SourceLocation L, FriendUnion Friend_, SourceLocation FriendL); + static FriendDecl *Create(ASTContext &C, EmptyShell Empty); /// If this friend declaration names an (untemplated but /// possibly dependent) type, return the type; otherwise @@ -87,6 +90,9 @@ public: static bool classof(const Decl *D) { return classofKind(D->getKind()); } static bool classof(const FriendDecl *D) { return true; } static bool classofKind(Kind K) { return K == Decl::Friend; } + + friend class PCHDeclReader; + friend class PCHDeclWriter; }; /// An iterator over the friend declarations of a class. |