summaryrefslogtreecommitdiffstats
path: root/clang/tools
diff options
context:
space:
mode:
authorFrederich Munch <colsebas@hotmail.com>2017-04-26 19:47:31 +0000
committerFrederich Munch <colsebas@hotmail.com>2017-04-26 19:47:31 +0000
commitb7755111a26f0ba590ef2a73f339f34570c3827a (patch)
treea3ad4383a64bc7eefb62338c19b83bf5d4235431 /clang/tools
parent2074b67ec26cc7657d0a354e0650c4ddeecd0e9f (diff)
downloadbcm5719-llvm-b7755111a26f0ba590ef2a73f339f34570c3827a.tar.gz
bcm5719-llvm-b7755111a26f0ba590ef2a73f339f34570c3827a.zip
PPCallbacks::MacroUndefined, change signature and add test.
Summary: The PPCallbacks::MacroUndefined callback is currently insufficient for clients that need to track the MacroDirectives. This patch adds an additional argument to PPCallbacks::MacroUndefined that is the undef MacroDirective. Reviewers: bruno, manmanren Reviewed By: bruno Subscribers: nemanjai, cfe-commits Differential Revision: https://reviews.llvm.org/D29923 llvm-svn: 301449
Diffstat (limited to 'clang/tools')
-rw-r--r--clang/tools/libclang/Indexing.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/tools/libclang/Indexing.cpp b/clang/tools/libclang/Indexing.cpp
index f98b2588797..5312b7c0169 100644
--- a/clang/tools/libclang/Indexing.cpp
+++ b/clang/tools/libclang/Indexing.cpp
@@ -262,7 +262,8 @@ public:
/// MacroUndefined - This hook is called whenever a macro #undef is seen.
/// MI is released immediately following this callback.
void MacroUndefined(const Token &MacroNameTok,
- const MacroDefinition &MD) override {}
+ const MacroDefinition &MD,
+ const MacroDirective *UD) override {}
/// MacroExpands - This is called by when a macro invocation is found.
void MacroExpands(const Token &MacroNameTok, const MacroDefinition &MD,
OpenPOWER on IntegriCloud