The attached patch changes PPCallbacks::MacroUndefined to be called even when the macro wasn't defined. This drops the MacroInfo parameter which would be null in that case. The only client (within clang) that used this parameter was PreprocessingRecord. The bulk of this patch adds a Preprocessor member to PreprocessingRecord so that it can look up the MacroInfo.
For us it's just as interesting to see an #undef for a macro without any #define as a defined one. This also makes it more consistent with the other callbacks like ifdef, ifndef, etc. Jason
undef.diff
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
