]> granicus.if.org Git - clang/commitdiff
FormatTokenLexer: Avoid non-static member initializer.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 6 Aug 2014 16:53:13 +0000 (16:53 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 6 Aug 2014 16:53:13 +0000 (16:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214976 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/Format.cpp

index bd9f3233237227ee60f18c6c3d8cf5fab0306920..4c18d54ec02e8de4ec8f165f78aecf42e8d8494c 100644 (file)
@@ -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);