From: Bruno Ricci Date: Thu, 15 Nov 2018 13:49:32 +0000 (+0000) Subject: [AST][NFC] Move the friend decls to the top of MemberExpr X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee95fa569c6a5dae43a9c426a9ade3a065693d54;p=clang [AST][NFC] Move the friend decls to the top of MemberExpr The norm is to have them at the top, and having them at the bottom is painful for the reader. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@346952 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index ba796960b7..ed11da4d7e 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -2559,6 +2559,10 @@ class MemberExpr final private llvm::TrailingObjects { + friend class ASTReader; + friend class ASTStmtWriter; + friend TrailingObjects; + /// Base - the expression for the base pointer or structure references. In /// X.F, this is "X". Stmt *Base; @@ -2796,10 +2800,6 @@ public: const_child_range children() const { return const_child_range(&Base, &Base + 1); } - - friend TrailingObjects; - friend class ASTReader; - friend class ASTStmtWriter; }; /// CompoundLiteralExpr - [C99 6.5.2.5]