[cfe-commits] [PATCH] Fix for syntax checking a header file

Aaron Ballman aaron at aaronballman.com
Mon Jul 30 18:21:46 PDT 2012


On Mon, Jul 30, 2012 at 8:57 PM, Chandler Carruth <chandlerc at google.com> wrote:
> On Mon, Jul 30, 2012 at 5:46 PM, Aaron Ballman <aaron at aaronballman.com>
> wrote:
>>
>> On Mon, Jul 30, 2012 at 8:31 PM, Chandler Carruth <chandlerc at google.com>
>> wrote:
>> > Why different code from the phases::Compile code right below that
>> > handles
>> > syntax only? I would expect these to be essentially identical.
>>
>> I will admit I'm not too familiar with the driver architecture, but
>> since this is applying to a header file, the phase comes in as
>> precompile and not compile.  So I figured the special case was what
>> made sense, instead of moving C headers to compile phases.
>
>
> Sorry, all I meant was to structure the code the same way. It would still be
> in the Precompile phase...

I was structuring it after the Preprocess code (which seems to be
acceptable after a quick chat on IRC).  I've updated the test case to
remove the check prefix and use unix line endings and committed in
r161019.

~Aaron



More information about the cfe-commits mailing list