[cfe-commits] Patch to add Defined PP callback

Jason Haslam jason.haslam at gmail.com
Mon Oct 10 02:12:24 PDT 2011


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.

Jason

-------------- next part --------------
A non-text attachment was scrubbed...
Name: defined.diff
Type: application/octet-stream
Size: 1526 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111010/87ef4674/attachment.obj>
-------------- next part --------------




More information about the cfe-commits mailing list