From caf86d2959d5e900ed29af5e0ae2be23e3d299c5 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 27 May 2021 09:54:09 -0400 Subject: [PATCH] Speculatively fix this harder and with improved spelling capabilities. --- clang/include/clang/Lex/PreprocessingRecord.h | 3 ++- clang/lib/Index/IndexingAction.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/clang/include/clang/Lex/PreprocessingRecord.h b/clang/include/clang/Lex/PreprocessingRecord.h index 54489cb..0137d87 100644 --- a/clang/include/clang/Lex/PreprocessingRecord.h +++ b/clang/include/clang/Lex/PreprocessingRecord.h @@ -539,7 +539,8 @@ class Token; void Ifndef(SourceLocation Loc, const Token &MacroNameTok, const MacroDefinition &MD) override; - using PPCallbacks::Elifdef, PPCallback::Elifndef; + using PPCallbacks::Elifdef; + using PPCallbacks::Elifndef; void Elifdef(SourceLocation Loc, const Token &MacroNameTok, const MacroDefinition &MD) override; void Elifndef(SourceLocation Loc, const Token &MacroNameTok, diff --git a/clang/lib/Index/IndexingAction.cpp b/clang/lib/Index/IndexingAction.cpp index 65479a4..c9fcaad 100644 --- a/clang/lib/Index/IndexingAction.cpp +++ b/clang/lib/Index/IndexingAction.cpp @@ -78,6 +78,8 @@ public: *MD.getMacroInfo()); } + using PPCallbacks::Elifdef; + using PPCallbacks::Elifndef; void Elifdef(SourceLocation Loc, const Token &MacroNameTok, const MacroDefinition &MD) override { if (!MD.getMacroInfo()) // Ignore non-existent macro. -- 2.7.4