Skip to content

Commit 71340a9

Browse files
committed
revert changes to UseTrailingReturnTypeCheck ctor
1 parent fbae463 commit 71340a9

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

clang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,10 +382,6 @@ static void keepSpecifiers(std::string &ReturnType, std::string &Auto,
382382
}
383383
}
384384

385-
UseTrailingReturnTypeCheck::UseTrailingReturnTypeCheck(
386-
StringRef Name, ClangTidyContext *Context)
387-
: ClangTidyCheck(Name, Context) {}
388-
389385
void UseTrailingReturnTypeCheck::registerMatchers(MatchFinder *Finder) {
390386
auto F = functionDecl(
391387
unless(anyOf(hasTrailingReturn(), returns(voidType()),

clang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ struct ClassifiedToken {
2626
/// http://clang.llvm.org/extra/clang-tidy/checks/modernize/use-trailing-return-type.html
2727
class UseTrailingReturnTypeCheck : public ClangTidyCheck {
2828
public:
29-
UseTrailingReturnTypeCheck(StringRef Name, ClangTidyContext *Context);
29+
UseTrailingReturnTypeCheck(StringRef Name, ClangTidyContext *Context)
30+
: ClangTidyCheck(Name, Context) {};
3031
bool isLanguageVersionSupported(const LangOptions &LangOpts) const override {
3132
return LangOpts.CPlusPlus11;
3233
}

0 commit comments

Comments
 (0)