[clang-tools-extra] r234416 - Remove redundant virtual from member functions marked 'override'.
David Blaikie
dblaikie at gmail.com
Wed Apr 8 10:00:57 PDT 2015
Author: dblaikie
Date: Wed Apr 8 12:00:56 2015
New Revision: 234416
URL: http://llvm.org/viewvc/llvm-project?rev=234416&view=rev
Log:
Remove redundant virtual from member functions marked 'override'.
Modified:
clang-tools-extra/trunk/clang-modernize/AddOverride/AddOverride.h
clang-tools-extra/trunk/clang-modernize/LoopConvert/LoopConvert.h
clang-tools-extra/trunk/clang-modernize/PassByValue/PassByValue.h
clang-tools-extra/trunk/clang-modernize/PassByValue/PassByValueActions.h
clang-tools-extra/trunk/clang-modernize/ReplaceAutoPtr/ReplaceAutoPtr.h
clang-tools-extra/trunk/clang-modernize/ReplaceAutoPtr/ReplaceAutoPtrActions.h
clang-tools-extra/trunk/clang-modernize/UseAuto/UseAuto.h
clang-tools-extra/trunk/clang-modernize/UseAuto/UseAutoActions.h
clang-tools-extra/trunk/clang-modernize/UseNullptr/UseNullptr.h
Modified: clang-tools-extra/trunk/clang-modernize/AddOverride/AddOverride.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-modernize/AddOverride/AddOverride.h?rev=234416&r1=234415&r2=234416&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-modernize/AddOverride/AddOverride.h (original)
+++ clang-tools-extra/trunk/clang-modernize/AddOverride/AddOverride.h Wed Apr 8 12:00:56 2015
@@ -31,11 +31,11 @@ public:
: Transform("AddOverride", Options) {}
/// \see Transform::run().
- virtual int apply(const clang::tooling::CompilationDatabase &Database,
- const std::vector<std::string> &SourcePaths) override;
+ int apply(const clang::tooling::CompilationDatabase &Database,
+ const std::vector<std::string> &SourcePaths) override;
- virtual bool handleBeginSource(clang::CompilerInstance &CI,
- llvm::StringRef Filename) override;
+ bool handleBeginSource(clang::CompilerInstance &CI,
+ llvm::StringRef Filename) override;
private:
AddOverrideFixer *Fixer;
Modified: clang-tools-extra/trunk/clang-modernize/LoopConvert/LoopConvert.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-modernize/LoopConvert/LoopConvert.h?rev=234416&r1=234415&r2=234416&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-modernize/LoopConvert/LoopConvert.h (original)
+++ clang-tools-extra/trunk/clang-modernize/LoopConvert/LoopConvert.h Wed Apr 8 12:00:56 2015
@@ -31,11 +31,12 @@ public:
: Transform("LoopConvert", Options) {}
/// \see Transform::run().
- virtual int apply(const clang::tooling::CompilationDatabase &Database,
- const std::vector<std::string> &SourcePaths) override;
+ int apply(const clang::tooling::CompilationDatabase &Database,
+ const std::vector<std::string> &SourcePaths) override;
+
+ bool handleBeginSource(clang::CompilerInstance &CI,
+ llvm::StringRef Filename) override;
- virtual bool handleBeginSource(clang::CompilerInstance &CI,
- llvm::StringRef Filename) override;
private:
std::unique_ptr<TUTrackingInfo> TUInfo;
};
Modified: clang-tools-extra/trunk/clang-modernize/PassByValue/PassByValue.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-modernize/PassByValue/PassByValue.h?rev=234416&r1=234415&r2=234416&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-modernize/PassByValue/PassByValue.h (original)
+++ clang-tools-extra/trunk/clang-modernize/PassByValue/PassByValue.h Wed Apr 8 12:00:56 2015
@@ -58,13 +58,13 @@ public:
: Transform("PassByValue", Options), Replacer(nullptr) {}
/// \see Transform::apply().
- virtual int apply(const clang::tooling::CompilationDatabase &Database,
- const std::vector<std::string> &SourcePaths) override;
+ int apply(const clang::tooling::CompilationDatabase &Database,
+ const std::vector<std::string> &SourcePaths) override;
private:
/// \brief Setups the \c IncludeDirectives for the replacer.
- virtual bool handleBeginSource(clang::CompilerInstance &CI,
- llvm::StringRef Filename) override;
+ bool handleBeginSource(clang::CompilerInstance &CI,
+ llvm::StringRef Filename) override;
std::unique_ptr<IncludeDirectives> IncludeManager;
ConstructorParamReplacer *Replacer;
Modified: clang-tools-extra/trunk/clang-modernize/PassByValue/PassByValueActions.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-modernize/PassByValue/PassByValueActions.h?rev=234416&r1=234415&r2=234416&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-modernize/PassByValue/PassByValueActions.h (original)
+++ clang-tools-extra/trunk/clang-modernize/PassByValue/PassByValueActions.h Wed Apr 8 12:00:56 2015
@@ -62,8 +62,8 @@ public:
private:
/// \brief Entry point to the callback called when matches are made.
- virtual void run(const clang::ast_matchers::MatchFinder::MatchResult &Result)
- override;
+ void
+ run(const clang::ast_matchers::MatchFinder::MatchResult &Result) override;
unsigned &AcceptedChanges;
unsigned &RejectedChanges;
Modified: clang-tools-extra/trunk/clang-modernize/ReplaceAutoPtr/ReplaceAutoPtr.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-modernize/ReplaceAutoPtr/ReplaceAutoPtr.h?rev=234416&r1=234415&r2=234416&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-modernize/ReplaceAutoPtr/ReplaceAutoPtr.h (original)
+++ clang-tools-extra/trunk/clang-modernize/ReplaceAutoPtr/ReplaceAutoPtr.h Wed Apr 8 12:00:56 2015
@@ -47,8 +47,8 @@ public:
: Transform("ReplaceAutoPtr", Options) {}
/// \see Transform::run().
- virtual int apply(const clang::tooling::CompilationDatabase &Database,
- const std::vector<std::string> &SourcePaths) override;
+ int apply(const clang::tooling::CompilationDatabase &Database,
+ const std::vector<std::string> &SourcePaths) override;
};
#endif // CLANG_MODERNIZE_REPLACE_AUTO_PTR_H
Modified: clang-tools-extra/trunk/clang-modernize/ReplaceAutoPtr/ReplaceAutoPtrActions.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-modernize/ReplaceAutoPtr/ReplaceAutoPtrActions.h?rev=234416&r1=234415&r2=234416&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-modernize/ReplaceAutoPtr/ReplaceAutoPtrActions.h (original)
+++ clang-tools-extra/trunk/clang-modernize/ReplaceAutoPtr/ReplaceAutoPtrActions.h Wed Apr 8 12:00:56 2015
@@ -29,8 +29,8 @@ public:
: AcceptedChanges(AcceptedChanges), Owner(Owner) {}
/// \brief Entry point to the callback called when matches are made.
- virtual void run(const clang::ast_matchers::MatchFinder::MatchResult &Result)
- override;
+ void
+ run(const clang::ast_matchers::MatchFinder::MatchResult &Result) override;
private:
/// \brief Locates the \c auto_ptr token when it is referred by a \c TypeLoc.
@@ -88,8 +88,8 @@ public:
: AcceptedChanges(AcceptedChanges), Owner(Owner) {}
/// \brief Entry point to the callback called when matches are made.
- virtual void run(const clang::ast_matchers::MatchFinder::MatchResult &Result)
- override;
+ void
+ run(const clang::ast_matchers::MatchFinder::MatchResult &Result) override;
private:
unsigned &AcceptedChanges;
Modified: clang-tools-extra/trunk/clang-modernize/UseAuto/UseAuto.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-modernize/UseAuto/UseAuto.h?rev=234416&r1=234415&r2=234416&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-modernize/UseAuto/UseAuto.h (original)
+++ clang-tools-extra/trunk/clang-modernize/UseAuto/UseAuto.h Wed Apr 8 12:00:56 2015
@@ -34,8 +34,8 @@ public:
: Transform("UseAuto", Options) {}
/// \see Transform::run().
- virtual int apply(const clang::tooling::CompilationDatabase &Database,
- const std::vector<std::string> &SourcePaths) override;
+ int apply(const clang::tooling::CompilationDatabase &Database,
+ const std::vector<std::string> &SourcePaths) override;
};
#endif // CLANG_MODERNIZE_USE_AUTO_H
Modified: clang-tools-extra/trunk/clang-modernize/UseAuto/UseAutoActions.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-modernize/UseAuto/UseAutoActions.h?rev=234416&r1=234415&r2=234416&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-modernize/UseAuto/UseAutoActions.h (original)
+++ clang-tools-extra/trunk/clang-modernize/UseAuto/UseAutoActions.h Wed Apr 8 12:00:56 2015
@@ -29,8 +29,8 @@ public:
: AcceptedChanges(AcceptedChanges), Owner(Owner) {}
/// \brief Entry point to the callback called when matches are made.
- virtual void run(const clang::ast_matchers::MatchFinder::MatchResult &Result)
- override;
+ void
+ run(const clang::ast_matchers::MatchFinder::MatchResult &Result) override;
private:
unsigned &AcceptedChanges;
@@ -45,8 +45,8 @@ public:
: AcceptedChanges(AcceptedChanges), Owner(Owner) {}
/// \brief Entry point to the callback called when matches are made.
- virtual void run(const clang::ast_matchers::MatchFinder::MatchResult &Result)
- override;
+ void
+ run(const clang::ast_matchers::MatchFinder::MatchResult &Result) override;
private:
unsigned &AcceptedChanges;
Modified: clang-tools-extra/trunk/clang-modernize/UseNullptr/UseNullptr.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-modernize/UseNullptr/UseNullptr.h?rev=234416&r1=234415&r2=234416&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-modernize/UseNullptr/UseNullptr.h (original)
+++ clang-tools-extra/trunk/clang-modernize/UseNullptr/UseNullptr.h Wed Apr 8 12:00:56 2015
@@ -28,8 +28,8 @@ public:
: Transform("UseNullptr", Options) {}
/// \see Transform::run().
- virtual int apply(const clang::tooling::CompilationDatabase &Database,
- const std::vector<std::string> &SourcePaths) override;
+ int apply(const clang::tooling::CompilationDatabase &Database,
+ const std::vector<std::string> &SourcePaths) override;
};
#endif // CLANG_MODERNIZE_USE_NULLPTR_H
More information about the cfe-commits
mailing list