Update to reflect changes in Clang.
In Clang r181065 MacroArgs argument was added to MacroExpands preprocessor callback.
This commit is contained in:
parent
bac8d7e1db
commit
62397c669b
|
@ -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)) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue