diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-11-14 19:27:22 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-11-14 19:27:22 +0000 |
commit | 13f3e9fac71230b24857613d683fa146ef0da7a8 (patch) | |
tree | b273ab8ceb1830d3f0fb901a4e26d67afae33ca1 | |
parent | 7d9a1771f7ac1e2786282fff332ff0941140bc48 (diff) |
Remove some redundant virtual on overridden functions
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@222027 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | clang-modernize/Core/IncludeDirectives.cpp | 4 | ||||
-rw-r--r-- | clang-modernize/Core/Transform.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang-modernize/Core/IncludeDirectives.cpp b/clang-modernize/Core/IncludeDirectives.cpp index 2b25e2fd..8ad1dc58 100644 --- a/clang-modernize/Core/IncludeDirectives.cpp +++ b/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-modernize/Core/Transform.cpp b/clang-modernize/Core/Transform.cpp index 6052bfb8..41a7d454 100644 --- a/clang-modernize/Core/Transform.cpp +++ b/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(); } |