diff options
-rw-r--r-- | clang-tools-extra/clang-modernize/Core/IncludeDirectives.cpp | 4 | ||||
-rw-r--r-- | clang-tools-extra/clang-modernize/Core/Transform.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang-tools-extra/clang-modernize/Core/IncludeDirectives.cpp b/clang-tools-extra/clang-modernize/Core/IncludeDirectives.cpp index 2b25e2fd4b0..8ad1dc58f48 100644 --- a/clang-tools-extra/clang-modernize/Core/IncludeDirectives.cpp +++ b/clang-tools-extra/clang-modernize/Core/IncludeDirectives.cpp @@ -178,7 +178,7 @@ private: } } - virtual void Endif(SourceLocation Loc, SourceLocation IfLoc) override { + void Endif(SourceLocation Loc, SourceLocation IfLoc) override { Guard->Count++; // If it's the #endif corresponding to the top-most #ifndef @@ -220,7 +220,7 @@ private: const MacroDirective *) override { Guard->Count++; } - virtual void Else(SourceLocation, SourceLocation) override { + void Else(SourceLocation, SourceLocation) override { Guard->Count++; } diff --git a/clang-tools-extra/clang-modernize/Core/Transform.cpp b/clang-tools-extra/clang-modernize/Core/Transform.cpp index 6052bfb812f..41a7d4546c9 100644 --- a/clang-tools-extra/clang-modernize/Core/Transform.cpp +++ b/clang-tools-extra/clang-modernize/Core/Transform.cpp @@ -39,7 +39,7 @@ public: ActionFactory(MatchFinder &Finder, Transform &Owner) : Finder(Finder), Owner(Owner) {} - virtual FrontendAction *create() override { + FrontendAction *create() override { return new FactoryAdaptor(Finder, Owner); } @@ -62,7 +62,7 @@ private: return Owner.handleBeginSource(CI, Filename); } - virtual void EndSourceFileAction() override { + void EndSourceFileAction() override { Owner.handleEndSource(); return ASTFrontendAction::EndSourceFileAction(); } |