[cfe-commits] r63764 - in /cfe/trunk: lib/Lex/PPDirectives.cpp test/Preprocessor/include-directive1.c test/Preprocessor/include-directive3.c

Chris Lattner clattner at apple.com
Wed Feb 4 13:46:30 PST 2009


On Feb 4, 2009, at 1:41 PM, Daniel Dunbar wrote:

> On Wed, Feb 4, 2009 at 1:22 PM, Chris Lattner <clattner at apple.com>  
> wrote:
>>> Would it be terrible to give the predefines buffer a file entry,  
>>> with
>>> the path being the current working directory? This would also allow
>>> things in the predefines buffer to have a valid source location...
>>
>> Is this something that is needed in practice for something important?
>
> Are you referring to the relative location of the include, or giving
> predefines a source location?

I'm asking about relative files with -include and no -I.

> Giving predefines a source location would make debug info generation a

things from the predefine buffer do have a SourceLocation, just no  
FileEntry.  This shouldn't impact anything other than file lookup in  
the preprocessor.

-Chris



More information about the cfe-commits mailing list