r281995 - [cleanup] Remove excessive padding from TextTokenRetokenizer::Position

Alexander Shaposhnikov via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 20 11:32:48 PDT 2016


Author: alexshap
Date: Tue Sep 20 13:32:48 2016
New Revision: 281995

URL: http://llvm.org/viewvc/llvm-project?rev=281995&view=rev
Log:
[cleanup] Remove excessive padding from TextTokenRetokenizer::Position

Reorder the fields of the struct TextTokenRetokenizer::Position to remove excessive padding.
Test plan: make -j8 check-clang

Differential revision: https://reviews.llvm.org/D24751

Modified:
    cfe/trunk/lib/AST/CommentParser.cpp

Modified: cfe/trunk/lib/AST/CommentParser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/CommentParser.cpp?rev=281995&r1=281994&r2=281995&view=diff
==============================================================================
--- cfe/trunk/lib/AST/CommentParser.cpp (original)
+++ cfe/trunk/lib/AST/CommentParser.cpp Tue Sep 20 13:32:48 2016
@@ -40,11 +40,11 @@ class TextTokenRetokenizer {
 
   /// A position in \c Toks.
   struct Position {
-    unsigned CurToken;
     const char *BufferStart;
     const char *BufferEnd;
     const char *BufferPtr;
     SourceLocation BufferStartLoc;
+    unsigned CurToken;
   };
 
   /// Current position in Toks.




More information about the cfe-commits mailing list