[clang-tools-extra] 454a34d - [include-cleaner] Fix -Woverloaded-virtual warning, NFC.

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 29 06:10:07 PST 2022


Author: Haojian Wu
Date: 2022-11-29T15:09:56+01:00
New Revision: 454a34d2c04f68f3d7b907d78f3071710b93cf34

URL: https://github.com/llvm/llvm-project/commit/454a34d2c04f68f3d7b907d78f3071710b93cf34
DIFF: https://github.com/llvm/llvm-project/commit/454a34d2c04f68f3d7b907d78f3071710b93cf34.diff

LOG: [include-cleaner] Fix -Woverloaded-virtual warning, NFC.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/include-cleaner/lib/Record.cpp b/clang-tools-extra/include-cleaner/lib/Record.cpp
index a0aa1ad6845d2..ac3315abb882c 100644
--- a/clang-tools-extra/include-cleaner/lib/Record.cpp
+++ b/clang-tools-extra/include-cleaner/lib/Record.cpp
@@ -99,6 +99,8 @@ class PPRecorder : public PPCallbacks {
       recordMacroRef(MacroNameTok, *MI, RefType::Ambiguous);
   }
 
+  using PPCallbacks::Elifdef;
+  using PPCallbacks::Elifndef;
   void Elifdef(SourceLocation Loc, const Token &MacroNameTok,
                const MacroDefinition &MD) override {
     if (!Active)
@@ -106,7 +108,6 @@ class PPRecorder : public PPCallbacks {
     if (const auto *MI = MD.getMacroInfo())
       recordMacroRef(MacroNameTok, *MI, RefType::Ambiguous);
   }
-
   void Elifndef(SourceLocation Loc, const Token &MacroNameTok,
                 const MacroDefinition &MD) override {
     if (!Active)


        


More information about the cfe-commits mailing list