Update to reflect changes in Clang.

In Clang r181065 MacroArgs argument was added to MacroExpands preprocessor
callback.
This commit is contained in:
Volodymyr Sapsai 2013-05-04 20:53:56 +00:00
parent bac8d7e1db
commit 62397c669b
2 changed files with 4 additions and 2 deletions

View File

@ -519,7 +519,8 @@ void IwyuPreprocessorInfo::AddDirectInclude(
// definition.
void IwyuPreprocessorInfo::MacroExpands(const Token& macro_use_token,
const MacroDirective* directive,
SourceRange range) {
SourceRange range,
const clang::MacroArgs* /*args*/) {
const FileEntry* macro_file = GetFileEntry(macro_use_token);
const MacroInfo* macro_def = directive->getMacroInfo();
if (ShouldPrintSymbolFromFile(macro_file)) {

View File

@ -170,7 +170,8 @@ class IwyuPreprocessorInfo : public clang::PPCallbacks,
// Preprocessor event handlers called by Clang.
virtual void MacroExpands(const clang::Token& id,
const clang::MacroDirective* directive,
clang::SourceRange range) IWYU_OVERRIDE;
clang::SourceRange range,
const clang::MacroArgs* args) IWYU_OVERRIDE;
virtual void MacroDefined(
const clang::Token& id,
const clang::MacroDirective* directive) IWYU_OVERRIDE;