Skip to content

Commit 454a34d

Browse files
committed
[include-cleaner] Fix -Woverloaded-virtual warning, NFC.
1 parent 0752fb5 commit 454a34d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang-tools-extra/include-cleaner/lib/Record.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,15 @@ class PPRecorder : public PPCallbacks {
9999
recordMacroRef(MacroNameTok, *MI, RefType::Ambiguous);
100100
}
101101

102+
using PPCallbacks::Elifdef;
103+
using PPCallbacks::Elifndef;
102104
void Elifdef(SourceLocation Loc, const Token &MacroNameTok,
103105
const MacroDefinition &MD) override {
104106
if (!Active)
105107
return;
106108
if (const auto *MI = MD.getMacroInfo())
107109
recordMacroRef(MacroNameTok, *MI, RefType::Ambiguous);
108110
}
109-
110111
void Elifndef(SourceLocation Loc, const Token &MacroNameTok,
111112
const MacroDefinition &MD) override {
112113
if (!Active)

0 commit comments

Comments
 (0)