[cfe-commits] PATCH: Call EndSourceFile() from ParseAST

Craig Silverstein csilvers at google.com
Fri Dec 3 19:49:29 PST 2010


I registered a PPCallback and was confused when EndOfMainFile() was
not being called on it.  Tracing through the code, it looks like it's
just because the appropriate callback wasn't being called form the
parsing routine.

I don't know the big picture enough to say if EndSourceFile() is
supposed to be being called from somewhere else, but this fixed the
problem for me.  Does it look correct?  Look good to apply?

craig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: esf.patch
Type: text/x-diff
Size: 455 bytes
Desc: /var/tmp/esf.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101203/e2c88743/attachment.patch>


More information about the cfe-commits mailing list