[cfe-commits] Patch to add Defined PP callback

Douglas Gregor dgregor at apple.com
Thu Oct 13 17:51:53 PDT 2011


On Oct 10, 2011, at 2:12 AM, Jason Haslam wrote:

> This small patch adds another preprocessor callback that is invoked every time the 'defined' operator is seen. This (together with the macro expansion callback) allows all of the macro names in a preprocessor condition to be visited. I first tried to accomplish the same thing by addressing the FIXMEs on the If/Elif callbacks but those changes seemed too invasive.


Yes, those would be fairly invasive. I like this better. Committed as r141926, thanks!

	- Doug



More information about the cfe-commits mailing list