[cfe-commits] r172668 - /cfe/trunk/lib/Lex/Preprocessor.cpp

David Blaikie dblaikie at gmail.com
Wed Jan 16 15:18:52 PST 2013


On Wed, Jan 16, 2013 at 3:16 PM, David Blaikie <dblaikie at gmail.com> wrote:
> On Wed, Jan 16, 2013 at 3:13 PM, David Blaikie <dblaikie at gmail.com> wrote:
>> Author: dblaikie
>> Date: Wed Jan 16 17:13:36 2013
>> New Revision: 172668
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=172668&view=rev
>> Log:
>> Fix -Wreorder warning.
>>
>> Rewrapping courtesy of clang-format.
>
> Actually this was already fixed by echristo in 172649. I accidentally
> still had this in a git branch - been a bit all over the place today.
>
> I'll remove the initialization of ParsingIfOrElifDirective in favor of
> the initialization in the body that Eric added, but I'll leave in the
> reformatting since I'm already on the blame line anyway.

r172672

>
>>
>> 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=172668&r1=172667&r2=172668&view=diff
>> ==============================================================================
>> --- cfe/trunk/lib/Lex/Preprocessor.cpp (original)
>> +++ cfe/trunk/lib/Lex/Preprocessor.cpp Wed Jan 16 17:13:36 2013
>> @@ -57,19 +57,17 @@
>>                             DiagnosticsEngine &diags, LangOptions &opts,
>>                             const TargetInfo *target, SourceManager &SM,
>>                             HeaderSearch &Headers, ModuleLoader &TheModuleLoader,
>> -                           IdentifierInfoLookup* IILookup,
>> -                           bool OwnsHeaders,
>> -                           bool DelayInitialization,
>> -                           bool IncrProcessing)
>> -  : PPOpts(PPOpts), Diags(&diags), LangOpts(opts), Target(target),
>> -    FileMgr(Headers.getFileMgr()),
>> -    SourceMgr(SM), HeaderInfo(Headers), TheModuleLoader(TheModuleLoader),
>> -    ExternalSource(0), Identifiers(opts, IILookup),
>> -    IncrementalProcessing(IncrProcessing), CodeComplete(0),
>> -    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) {
>> +                           IdentifierInfoLookup *IILookup, bool OwnsHeaders,
>> +                           bool DelayInitialization, bool IncrProcessing)
>> +    : PPOpts(PPOpts), Diags(&diags), LangOpts(opts), Target(target),
>> +      FileMgr(Headers.getFileMgr()), SourceMgr(SM), HeaderInfo(Headers),
>> +      TheModuleLoader(TheModuleLoader), ExternalSource(0),
>> +      ParsingIfOrElifDirective(false), Identifiers(opts, IILookup),
>> +      IncrementalProcessing(IncrProcessing), CodeComplete(0),
>> +      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) {
>>    OwnsHeaderSearch = OwnsHeaders;
>>
>>    ScratchBuf = new ScratchBuffer(SourceMgr);
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits



More information about the cfe-commits mailing list