Revert "Apply modernize-use-default to clang-tools-extra."
Breaks the build in GCC 4.7.2 (see http://lab.llvm.org:8011/builders/perf-x86_64-penryn-O3 for example) This reverts commit r250824. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250862 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
dec2fa63a9
Коммит
1ec3c0fcf8
|
@ -60,7 +60,7 @@ class IncludeDirectivesPPCallback : public clang::PPCallbacks {
|
||||||
public:
|
public:
|
||||||
IncludeDirectivesPPCallback(IncludeDirectives *Self)
|
IncludeDirectivesPPCallback(IncludeDirectives *Self)
|
||||||
: Self(Self), Guard(nullptr) {}
|
: Self(Self), Guard(nullptr) {}
|
||||||
~IncludeDirectivesPPCallback() override = default;
|
~IncludeDirectivesPPCallback() override {}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
|
void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
|
||||||
|
|
|
@ -82,7 +82,7 @@ Transform::Transform(llvm::StringRef Name, const TransformOptions &Options)
|
||||||
Reset();
|
Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
Transform::~Transform() = default;
|
Transform::~Transform() {}
|
||||||
|
|
||||||
bool Transform::isFileModifiable(const SourceManager &SM,
|
bool Transform::isFileModifiable(const SourceManager &SM,
|
||||||
SourceLocation Loc) const {
|
SourceLocation Loc) const {
|
||||||
|
@ -150,7 +150,7 @@ Version Version::getFromString(llvm::StringRef VersionStr) {
|
||||||
return V;
|
return V;
|
||||||
}
|
}
|
||||||
|
|
||||||
TransformFactory::~TransformFactory() = default;
|
TransformFactory::~TransformFactory() {}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
bool versionSupported(Version Required, Version AvailableSince) {
|
bool versionSupported(Version Required, Version AvailableSince) {
|
||||||
|
|
|
@ -20,7 +20,7 @@ using namespace clang::ast_matchers::dynamic;
|
||||||
namespace clang {
|
namespace clang {
|
||||||
namespace query {
|
namespace query {
|
||||||
|
|
||||||
Query::~Query() = default;
|
Query::~Query() {}
|
||||||
|
|
||||||
bool InvalidQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {
|
bool InvalidQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {
|
||||||
OS << ErrStr << "\n";
|
OS << ErrStr << "\n";
|
||||||
|
|
|
@ -82,7 +82,7 @@ private:
|
||||||
/// them a prefixed name.
|
/// them a prefixed name.
|
||||||
class ClangTidyModule {
|
class ClangTidyModule {
|
||||||
public:
|
public:
|
||||||
virtual ~ClangTidyModule() = default;
|
virtual ~ClangTidyModule() {}
|
||||||
|
|
||||||
/// \brief Implement this function in order to register all \c CheckFactories
|
/// \brief Implement this function in order to register all \c CheckFactories
|
||||||
/// belonging to this module.
|
/// belonging to this module.
|
||||||
|
|
|
@ -88,7 +88,7 @@ struct ClangTidyOptions {
|
||||||
/// \brief Abstract interface for retrieving various ClangTidy options.
|
/// \brief Abstract interface for retrieving various ClangTidy options.
|
||||||
class ClangTidyOptionsProvider {
|
class ClangTidyOptionsProvider {
|
||||||
public:
|
public:
|
||||||
virtual ~ClangTidyOptionsProvider() = default;
|
virtual ~ClangTidyOptionsProvider() {}
|
||||||
|
|
||||||
/// \brief Returns global options, which are independent of the file.
|
/// \brief Returns global options, which are independent of the file.
|
||||||
virtual const ClangTidyGlobalOptions &getGlobalOptions() = 0;
|
virtual const ClangTidyGlobalOptions &getGlobalOptions() = 0;
|
||||||
|
|
|
@ -38,7 +38,7 @@ IncludeInserter::IncludeInserter(const SourceManager &SourceMgr,
|
||||||
IncludeSorter::IncludeStyle Style)
|
IncludeSorter::IncludeStyle Style)
|
||||||
: SourceMgr(SourceMgr), LangOpts(LangOpts), Style(Style) {}
|
: SourceMgr(SourceMgr), LangOpts(LangOpts), Style(Style) {}
|
||||||
|
|
||||||
IncludeInserter::~IncludeInserter() = default;
|
IncludeInserter::~IncludeInserter() {}
|
||||||
|
|
||||||
std::unique_ptr<PPCallbacks> IncludeInserter::CreatePPCallbacks() {
|
std::unique_ptr<PPCallbacks> IncludeInserter::CreatePPCallbacks() {
|
||||||
return llvm::make_unique<IncludeInserterCallback>(this);
|
return llvm::make_unique<IncludeInserterCallback>(this);
|
||||||
|
|
|
@ -83,7 +83,7 @@ namespace sys = llvm::sys;
|
||||||
class CoverageCheckerCallbacks : public PPCallbacks {
|
class CoverageCheckerCallbacks : public PPCallbacks {
|
||||||
public:
|
public:
|
||||||
CoverageCheckerCallbacks(CoverageChecker &Checker) : Checker(Checker) {}
|
CoverageCheckerCallbacks(CoverageChecker &Checker) : Checker(Checker) {}
|
||||||
~CoverageCheckerCallbacks() override = default;
|
~CoverageCheckerCallbacks() override {}
|
||||||
|
|
||||||
// Include directive callback.
|
// Include directive callback.
|
||||||
void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
|
void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
|
||||||
|
|
|
@ -746,7 +746,7 @@ public:
|
||||||
PreprocessorCallbacks(PreprocessorTrackerImpl &ppTracker,
|
PreprocessorCallbacks(PreprocessorTrackerImpl &ppTracker,
|
||||||
clang::Preprocessor &PP, llvm::StringRef rootHeaderFile)
|
clang::Preprocessor &PP, llvm::StringRef rootHeaderFile)
|
||||||
: PPTracker(ppTracker), PP(PP), RootHeaderFile(rootHeaderFile) {}
|
: PPTracker(ppTracker), PP(PP), RootHeaderFile(rootHeaderFile) {}
|
||||||
~PreprocessorCallbacks() override = default;
|
~PreprocessorCallbacks() override {}
|
||||||
|
|
||||||
// Overridden handlers.
|
// Overridden handlers.
|
||||||
void InclusionDirective(clang::SourceLocation HashLoc,
|
void InclusionDirective(clang::SourceLocation HashLoc,
|
||||||
|
@ -812,7 +812,7 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
~PreprocessorTrackerImpl() override = default;
|
~PreprocessorTrackerImpl() override {}
|
||||||
|
|
||||||
// Handle entering a preprocessing session.
|
// Handle entering a preprocessing session.
|
||||||
void handlePreprocessorEntry(clang::Preprocessor &PP,
|
void handlePreprocessorEntry(clang::Preprocessor &PP,
|
||||||
|
@ -1288,7 +1288,7 @@ private:
|
||||||
// PreprocessorTracker functions.
|
// PreprocessorTracker functions.
|
||||||
|
|
||||||
// PreprocessorTracker desctructor.
|
// PreprocessorTracker desctructor.
|
||||||
PreprocessorTracker::~PreprocessorTracker() = default;
|
PreprocessorTracker::~PreprocessorTracker() {}
|
||||||
|
|
||||||
// Create instance of PreprocessorTracker.
|
// Create instance of PreprocessorTracker.
|
||||||
PreprocessorTracker *PreprocessorTracker::create(
|
PreprocessorTracker *PreprocessorTracker::create(
|
||||||
|
|
|
@ -96,7 +96,7 @@ PPCallbacksTracker::PPCallbacksTracker(llvm::SmallSet<std::string, 4> &Ignore,
|
||||||
clang::Preprocessor &PP)
|
clang::Preprocessor &PP)
|
||||||
: CallbackCalls(CallbackCalls), Ignore(Ignore), PP(PP) {}
|
: CallbackCalls(CallbackCalls), Ignore(Ignore), PP(PP) {}
|
||||||
|
|
||||||
PPCallbacksTracker::~PPCallbacksTracker() = default;
|
PPCallbacksTracker::~PPCallbacksTracker() {}
|
||||||
|
|
||||||
// Callback functions.
|
// Callback functions.
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ class CXXSystemIncludeInserterCheck : public IncludeInserterCheckBase {
|
||||||
public:
|
public:
|
||||||
CXXSystemIncludeInserterCheck(StringRef CheckName, ClangTidyContext *Context)
|
CXXSystemIncludeInserterCheck(StringRef CheckName, ClangTidyContext *Context)
|
||||||
: IncludeInserterCheckBase(CheckName, Context) {}
|
: IncludeInserterCheckBase(CheckName, Context) {}
|
||||||
virtual ~CXXSystemIncludeInserterCheck() = default;
|
virtual ~CXXSystemIncludeInserterCheck() {}
|
||||||
|
|
||||||
std::vector<StringRef> HeadersToInclude() const override { return {"set"}; }
|
std::vector<StringRef> HeadersToInclude() const override { return {"set"}; }
|
||||||
bool IsAngledInclude() const override { return true; }
|
bool IsAngledInclude() const override { return true; }
|
||||||
|
|
Загрузка…
Ссылка в новой задаче