[cfe-commits] Patch to recover from 'file not found' error

Douglas Gregor dgregor at apple.com
Wed Nov 2 11:16:19 PDT 2011

On Nov 2, 2011, at 10:16 AM, Jason Haslam wrote:

> The attached patch adds the ability to recover from an include file not found error through the InclusionDirective PP callback. We use this in our IDE to provide an option to search among project files for missing includes.

Wouldn't it be better for the callback to return a new header search path that would be used to find the header, so that we can augment the list of header search paths? That way, we can find the same header (and any other headers available via that path) in subsequent inclusions. 

	- Doug

More information about the cfe-commits mailing list