[cfe-commits] r172649 - /cfe/trunk/lib/Lex/Preprocessor.cpp
Eric Christopher
echristo at gmail.com
Wed Jan 16 12:09:36 PST 2013
Author: echristo
Date: Wed Jan 16 14:09:36 2013
New Revision: 172649
URL: http://llvm.org/viewvc/llvm-project?rev=172649&view=rev
Log:
Move initialization of ParsingIfOrElifDirective down next to the macro
initializations to fix Wreorder warning.
Modified:
cfe/trunk/lib/Lex/Preprocessor.cpp
Modified: cfe/trunk/lib/Lex/Preprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Preprocessor.cpp?rev=172649&r1=172648&r2=172649&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/Preprocessor.cpp (original)
+++ cfe/trunk/lib/Lex/Preprocessor.cpp Wed Jan 16 14:09:36 2013
@@ -69,9 +69,7 @@
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 @@
InMacroArgPreExpansion = false;
NumCachedTokenLexers = 0;
PragmasEnabled = true;
+ ParsingIfOrElifDirective = false;
CachedLexPos = 0;
-
+
// We haven't read anything from the external source.
ReadMacrosFromExternalSource = false;
More information about the cfe-commits
mailing list