aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Lex
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-21 03:42:09 +0000
committerChris Lattner <sabre@nondot.org>2009-04-21 03:42:09 +0000
commit41c17473e3ece9e60d97c5d9397866b7730cf7ee (patch)
tree657724e153c77d5d6817b66547be45dbffdc3f4c /include/clang/Lex
parent19d28a650ca6d98f7907ad891557fccca7baaea8 (diff)
add a preprocessor callback function for #undef, patch by
Alexei Svitkine! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69656 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex')
-rw-r--r--include/clang/Lex/PPCallbacks.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Lex/PPCallbacks.h b/include/clang/Lex/PPCallbacks.h
index d2e3f353cb..ddd7415c29 100644
--- a/include/clang/Lex/PPCallbacks.h
+++ b/include/clang/Lex/PPCallbacks.h
@@ -64,6 +64,11 @@ public:
/// MacroDefined - This hook is called whenever a macro definition is seen.
virtual void MacroDefined(const IdentifierInfo *II, const MacroInfo *MI) {
}
+
+ /// MacroUndefined - This hook is called whenever a macro #undef is seen.
+ /// MI is released immediately following this callback.
+ virtual void MacroUndefined(const IdentifierInfo *II, const MacroInfo *MI) {
+ }
};
} // end namespace clang