[libcpp] maybe canonicalize system paths in line-map

Dodji Seketeli dodji@seketeli.org
Fri Apr 27 15:30:00 GMT 2012


Manuel López-Ibáñez <lopezibanez@gmail.com> a écrit:

> Another drawback I didn't realize until now is that in this way the
> canonicalize every path, instead of only touching those that belong to
> system headers.

Ah.  Good catch.

I guess file->dir->sysp should tell us if we are in a system directory,
so that we can avoid canonicalizing in that case.

> I am not sure if it is important or not.

I don't know either.  But I guess we could err on the safe side by
limiting the change to system just headers like you were initially
proposing.

-- 
		Dodji



More information about the Gcc-patches mailing list