]> granicus.if.org Git - clang/commitdiff
[AST][NFC] Move the friend decls to the top of MemberExpr
authorBruno Ricci <riccibrun@gmail.com>
Thu, 15 Nov 2018 13:49:32 +0000 (13:49 +0000)
committerBruno Ricci <riccibrun@gmail.com>
Thu, 15 Nov 2018 13:49:32 +0000 (13:49 +0000)
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

index ba796960b76bf62eccc28bc74a0e28909dc1fa61..ed11da4d7ed9dcd2af782d974cfa6bff63fbc3ca 100644 (file)
@@ -2559,6 +2559,10 @@ class MemberExpr final
       private llvm::TrailingObjects<MemberExpr, MemberExprNameQualifier,
                                     ASTTemplateKWAndArgsInfo,
                                     TemplateArgumentLoc> {
+  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]