From ee95fa569c6a5dae43a9c426a9ade3a065693d54 Mon Sep 17 00:00:00 2001 From: Bruno Ricci Date: Thu, 15 Nov 2018 13:49:32 +0000 Subject: [PATCH] [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 --- include/clang/AST/Expr.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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] -- 2.40.0