[PATCH] Correctly check for the main file in the presence of line markers

Eli Friedman eli.friedman at gmail.com
Fri Aug 9 21:33:57 PDT 2013


On Mon, Jul 29, 2013 at 6:33 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
> Patch attached.  Basically, the idea is that even if a SourceLocation
> is technically in the main file, we might want to treat it differently
> in the presence of line markers.  I added
> SourceManager::isPresumedFromMainFile to check this.
> I'm particularly looking for suggestions about the name of the method;
> having isFromMainFile and isPresumedFromMainFile seems very confusing,
> but I don't really have any better ideas.
> -Eli

More information about the cfe-commits mailing list