PPCallbacks::MacroUndefined, change signature and add test.
authorFrederich Munch <colsebas@hotmail.com>
Wed, 26 Apr 2017 19:47:31 +0000 (19:47 +0000)
committerFrederich Munch <colsebas@hotmail.com>
Wed, 26 Apr 2017 19:47:31 +0000 (19:47 +0000)
commitb7755111a26f0ba590ef2a73f339f34570c3827a
treea3ad4383a64bc7eefb62338c19b83bf5d4235431
parent2074b67ec26cc7657d0a354e0650c4ddeecd0e9f
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
clang/include/clang/Lex/PPCallbacks.h
clang/include/clang/Lex/PreprocessingRecord.h
clang/lib/Frontend/PrintPreprocessedOutput.cpp
clang/lib/Lex/PPDirectives.cpp
clang/lib/Lex/PreprocessingRecord.cpp
clang/tools/libclang/Indexing.cpp
clang/unittests/Basic/SourceManagerTest.cpp