aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-01-16 20:09:36 +0000
committerEric Christopher <echristo@gmail.com>2013-01-16 20:09:36 +0000
commit5e4696d2f5d680d5df9b8397516ca87d535847d5 (patch)
tree4adb9eaf0f6ffa6449ebfd809eecdb2adbe2e3da /clang/lib/Lex/Preprocessor.cpp
parent37d05cded7ee711239f7c28586c2e57718d54e76 (diff)
downloadllvm-5e4696d2f5d680d5df9b8397516ca87d535847d5.zip
llvm-5e4696d2f5d680d5df9b8397516ca87d535847d5.tar.gz
llvm-5e4696d2f5d680d5df9b8397516ca87d535847d5.tar.bz2
Move initialization of ParsingIfOrElifDirective down next to the macro
initializations to fix Wreorder warning. llvm-svn: 172649
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r--clang/lib/Lex/Preprocessor.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp
index ccb2df0..8f6761f 100644
--- a/clang/lib/Lex/Preprocessor.cpp
+++ b/clang/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;