From b345aed8fbfa2345b68d4e628606723876fb50dc Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 6 Aug 2014 16:53:13 +0000 Subject: [PATCH] FormatTokenLexer: Avoid non-static member initializer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214976 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Format/Format.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index bd9f323323..4c18d54ec0 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -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 Tokens; SmallVector ForEachMacros; - bool FormattingDisabled = false; + bool FormattingDisabled; void readRawToken(FormatToken &Tok) { Lex.LexFromRawLexer(Tok.Tok); -- 2.50.1