r263922 - Reorder data members to be consistent with member initializers, to silence warnings.

Faisal Vali via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 21 03:37:43 PDT 2016


Author: faisalv
Date: Mon Mar 21 05:37:42 2016
New Revision: 263922

URL: http://llvm.org/viewvc/llvm-project?rev=263922&view=rev
Log:
Reorder data members to be consistent with member initializers, to silence warnings.

Modified:
    cfe/trunk/include/clang/Sema/ScopeInfo.h

Modified: cfe/trunk/include/clang/Sema/ScopeInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/ScopeInfo.h?rev=263922&r1=263921&r2=263922&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/ScopeInfo.h (original)
+++ cfe/trunk/include/clang/Sema/ScopeInfo.h Mon Mar 21 05:37:42 2016
@@ -422,11 +422,6 @@ public:
     enum CaptureKind {
       Cap_ByCopy, Cap_ByRef, Cap_Block, Cap_VLA
     };
-    /// Expression to initialize a field of the given type, and the kind of
-    /// capture (if this is a capture and not an init-capture). The expression
-    /// is only required if we are capturing ByVal and the variable's type has
-    /// a non-trivial copy constructor.
-    llvm::PointerIntPair<void *, 2, CaptureKind> InitExprAndCaptureKind;
     enum {
       IsNestedCapture = 0x1,
       IsThisCaptured = 0x2
@@ -434,7 +429,12 @@ public:
     /// The variable being captured (if we are not capturing 'this') and whether
     /// this is a nested capture, and whether we are capturing 'this'
     llvm::PointerIntPair<VarDecl*, 2> VarAndNestedAndThis;
-
+    /// Expression to initialize a field of the given type, and the kind of
+    /// capture (if this is a capture and not an init-capture). The expression
+    /// is only required if we are capturing ByVal and the variable's type has
+    /// a non-trivial copy constructor.
+    llvm::PointerIntPair<void *, 2, CaptureKind> InitExprAndCaptureKind;
+    
     /// \brief The source location at which the first capture occurred.
     SourceLocation Loc;
 




More information about the cfe-commits mailing list