Index: clang-modernize/Core/IncludeDirectives.cpp =================================================================== --- clang-modernize/Core/IncludeDirectives.cpp +++ clang-modernize/Core/IncludeDirectives.cpp @@ -60,7 +60,7 @@ public: IncludeDirectivesPPCallback(IncludeDirectives *Self) : Self(Self), Guard(nullptr) {} - ~IncludeDirectivesPPCallback() override {} + ~IncludeDirectivesPPCallback() override = default; private: void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok, Index: clang-modernize/Core/Transform.cpp =================================================================== --- clang-modernize/Core/Transform.cpp +++ clang-modernize/Core/Transform.cpp @@ -82,7 +82,7 @@ Reset(); } -Transform::~Transform() {} +Transform::~Transform() = default; bool Transform::isFileModifiable(const SourceManager &SM, SourceLocation Loc) const { @@ -150,7 +150,7 @@ return V; } -TransformFactory::~TransformFactory() {} +TransformFactory::~TransformFactory() = default; namespace { bool versionSupported(Version Required, Version AvailableSince) { Index: clang-query/Query.cpp =================================================================== --- clang-query/Query.cpp +++ clang-query/Query.cpp @@ -20,7 +20,7 @@ namespace clang { namespace query { -Query::~Query() {} +Query::~Query() = default; bool InvalidQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const { OS << ErrStr << "\n"; Index: clang-tidy/ClangTidyModule.h =================================================================== --- clang-tidy/ClangTidyModule.h +++ clang-tidy/ClangTidyModule.h @@ -82,7 +82,7 @@ /// them a prefixed name. class ClangTidyModule { public: - virtual ~ClangTidyModule() {} + virtual ~ClangTidyModule() = default; /// \brief Implement this function in order to register all \c CheckFactories /// belonging to this module. Index: clang-tidy/ClangTidyOptions.h =================================================================== --- clang-tidy/ClangTidyOptions.h +++ clang-tidy/ClangTidyOptions.h @@ -88,7 +88,7 @@ /// \brief Abstract interface for retrieving various ClangTidy options. class ClangTidyOptionsProvider { public: - virtual ~ClangTidyOptionsProvider() {} + virtual ~ClangTidyOptionsProvider() = default; /// \brief Returns global options, which are independent of the file. virtual const ClangTidyGlobalOptions &getGlobalOptions() = 0; Index: clang-tidy/utils/IncludeInserter.cpp =================================================================== --- clang-tidy/utils/IncludeInserter.cpp +++ clang-tidy/utils/IncludeInserter.cpp @@ -38,7 +38,7 @@ IncludeSorter::IncludeStyle Style) : SourceMgr(SourceMgr), LangOpts(LangOpts), Style(Style) {} -IncludeInserter::~IncludeInserter() {} +IncludeInserter::~IncludeInserter() = default; std::unique_ptr IncludeInserter::CreatePPCallbacks() { return llvm::make_unique(this); Index: modularize/CoverageChecker.cpp =================================================================== --- modularize/CoverageChecker.cpp +++ modularize/CoverageChecker.cpp @@ -83,7 +83,7 @@ class CoverageCheckerCallbacks : public PPCallbacks { public: CoverageCheckerCallbacks(CoverageChecker &Checker) : Checker(Checker) {} - ~CoverageCheckerCallbacks() override {} + ~CoverageCheckerCallbacks() override = default; // Include directive callback. void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok, Index: modularize/PreprocessorTracker.cpp =================================================================== --- modularize/PreprocessorTracker.cpp +++ modularize/PreprocessorTracker.cpp @@ -746,7 +746,7 @@ PreprocessorCallbacks(PreprocessorTrackerImpl &ppTracker, clang::Preprocessor &PP, llvm::StringRef rootHeaderFile) : PPTracker(ppTracker), PP(PP), RootHeaderFile(rootHeaderFile) {} - ~PreprocessorCallbacks() override {} + ~PreprocessorCallbacks() override = default; // Overridden handlers. void InclusionDirective(clang::SourceLocation HashLoc, @@ -812,7 +812,7 @@ } } - ~PreprocessorTrackerImpl() override {} + ~PreprocessorTrackerImpl() override = default; // Handle entering a preprocessing session. void handlePreprocessorEntry(clang::Preprocessor &PP, @@ -1288,7 +1288,7 @@ // PreprocessorTracker functions. // PreprocessorTracker desctructor. -PreprocessorTracker::~PreprocessorTracker() {} +PreprocessorTracker::~PreprocessorTracker() = default; // Create instance of PreprocessorTracker. PreprocessorTracker *PreprocessorTracker::create( Index: pp-trace/PPCallbacksTracker.cpp =================================================================== --- pp-trace/PPCallbacksTracker.cpp +++ pp-trace/PPCallbacksTracker.cpp @@ -93,7 +93,7 @@ clang::Preprocessor &PP) : CallbackCalls(CallbackCalls), Ignore(Ignore), PP(PP) {} -PPCallbacksTracker::~PPCallbacksTracker() {} +PPCallbacksTracker::~PPCallbacksTracker() = default; // Callback functions. Index: unittests/clang-tidy/IncludeInserterTest.cpp =================================================================== --- unittests/clang-tidy/IncludeInserterTest.cpp +++ unittests/clang-tidy/IncludeInserterTest.cpp @@ -98,7 +98,7 @@ public: CXXSystemIncludeInserterCheck(StringRef CheckName, ClangTidyContext *Context) : IncludeInserterCheckBase(CheckName, Context) {} - virtual ~CXXSystemIncludeInserterCheck() {} + virtual ~CXXSystemIncludeInserterCheck() = default; std::vector HeadersToInclude() const override { return {"set"}; } bool IsAngledInclude() const override { return true; }