r214976 - FormatTokenLexer: Avoid non-static member initializer.

NAKAMURA Takumi geek4civic at gmail.com
Wed Aug 6 09:53:13 PDT 2014


Author: chapuni
Date: Wed Aug  6 11:53:13 2014
New Revision: 214976

URL: http://llvm.org/viewvc/llvm-project?rev=214976&view=rev
Log:
FormatTokenLexer: Avoid non-static member initializer.

Modified:
    cfe/trunk/lib/Format/Format.cpp

Modified: cfe/trunk/lib/Format/Format.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/Format.cpp?rev=214976&r1=214975&r2=214976&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Wed Aug  6 11:53:13 2014
@@ -1274,7 +1274,7 @@ public:
       : FormatTok(nullptr), IsFirstToken(true), GreaterStashed(false),
         Column(0), TrailingWhitespace(0), Lex(Lex), SourceMgr(SourceMgr),
         Style(Style), IdentTable(getFormattingLangOpts()), Encoding(Encoding),
-        FirstInLineIndex(0) {
+        FirstInLineIndex(0), FormattingDisabled(false) {
     Lex.SetKeepWhitespaceMode(true);
 
     for (const std::string &ForEachMacro : Style.ForEachMacros)
@@ -1648,7 +1648,7 @@ private:
   SmallVector<FormatToken *, 16> Tokens;
   SmallVector<IdentifierInfo *, 8> ForEachMacros;
 
-  bool FormattingDisabled = false;
+  bool FormattingDisabled;
 
   void readRawToken(FormatToken &Tok) {
     Lex.LexFromRawLexer(Tok.Tok);





More information about the cfe-commits mailing list