: 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;
: 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;
};
: 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;
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;
: 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
: 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.
: 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;
: 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
: 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;
: 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;
: 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