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

Daniel Dunbar daniel at zuster.org
Wed Feb 4 13:41:26 PST 2009


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?

Giving predefines a source location would make debug info generation a
little less fragile (for when things referring to something like the
id typedef or the va_arg definition).

I don't have a project off-hand that is breaking due to the -include
handling, but it is quite easy to imagine that one would if srcdir !=
objdir and it ever used -include with a generated a .h file.

 - Daniel



More information about the cfe-commits mailing list