Hi all,

On Mon, Oct 1, 2012 at 8:01 PM, Chandler Carruth <[email protected]> wrote:
>>
>> Your suggestion is a bit contradictory, if we get the range 'HEADER_NAME',
>> then FilenameRange.getBegin().isMacroID() will be false (since it's pointing
>> at the beginning of the macro expansion).
>> The most fidelity option would be to give a range for  '<stdio.h>'
>> (MacroIDs for begin and end), from which a callback sink can get at the
>> 'HEADER_NAME' file-level range.
>> Is this your recommendation ?
>
>
> FWIW, I think it is, and it makes sense. ;] The source location structure
> is... confusing though.

Yes, apparently that's what I mean :)

The current implementation is close as it is, then, it just needs to
get the end of the range right.

Also, there's a case with concatenation;

#define HEADERNAME(suffix) foo ## suffix ## .h
#include HEADERNAME(bar)

I'm not sure if that's a different path or the same...?

Sorry for the confusion,
- Kim
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to