summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-08-06 16:53:13 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-08-06 16:53:13 +0000
commit7160c4d22f9a0677c6c3c403c9e409b3b7617352 (patch)
treedfdd8d7b3d98774f81574240dffa334b6946ca04
parent5b78a642e4c165b015f4a1ec99881b647cb45afb (diff)
downloadbcm5719-llvm-7160c4d22f9a0677c6c3c403c9e409b3b7617352.tar.gz
bcm5719-llvm-7160c4d22f9a0677c6c3c403c9e409b3b7617352.zip
FormatTokenLexer: Avoid non-static member initializer.
llvm-svn: 214976
-rw-r--r--clang/lib/Format/Format.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index bd9f3233237..4c18d54ec02 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/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<FormatToken *, 16> Tokens;
SmallVector<IdentifierInfo *, 8> ForEachMacros;
- bool FormattingDisabled = false;
+ bool FormattingDisabled;
void readRawToken(FormatToken &Tok) {
Lex.LexFromRawLexer(Tok.Tok);
OpenPOWER on IntegriCloud