diff options
author | Eric Christopher <echristo@gmail.com> | 2013-01-16 20:09:36 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-01-16 20:09:36 +0000 |
commit | 214ea9de659f4bfb3cf45ec361cf8be35bc0218d (patch) | |
tree | 7756209f48bfa0d6a37f3905a8f794c3b062a650 /lib/Lex/Preprocessor.cpp | |
parent | c3ad1003fda622abc091827a4dca8e5f81cc26d5 (diff) |
Move initialization of ParsingIfOrElifDirective down next to the macro
initializations to fix Wreorder warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172649 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r-- | lib/Lex/Preprocessor.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index ccb2df0602..8f6761fb5f 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -69,9 +69,7 @@ Preprocessor::Preprocessor(IntrusiveRefCntPtr<PreprocessorOptions> PPOpts, CodeCompletionFile(0), CodeCompletionOffset(0), CodeCompletionReached(0), SkipMainFilePreamble(0, true), CurPPLexer(0), CurDirLookup(0), CurLexerKind(CLK_Lexer), Callbacks(0), Listener(0), - MacroArgCache(0), Record(0), MIChainHead(0), MICache(0), - ParsingIfOrElifDirective(false) -{ + MacroArgCache(0), Record(0), MIChainHead(0), MICache(0) { OwnsHeaderSearch = OwnsHeaders; ScratchBuf = new ScratchBuffer(SourceMgr); @@ -98,9 +96,10 @@ Preprocessor::Preprocessor(IntrusiveRefCntPtr<PreprocessorOptions> PPOpts, InMacroArgPreExpansion = false; NumCachedTokenLexers = 0; PragmasEnabled = true; + ParsingIfOrElifDirective = false; CachedLexPos = 0; - + // We haven't read anything from the external source. ReadMacrosFromExternalSource = false; |