summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.h
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2016-01-29 17:35:53 +0000
committerAlexander Kornienko <alexfh@google.com>2016-01-29 17:35:53 +0000
commitd0d8878fb6418dfa666a4a33e64b002d750389fb (patch)
treea660afb69b651587b1752480a91678f4524b8af8 /clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.h
parent8c738635b19579c236364895ae34ef68190776c0 (diff)
downloadbcm5719-llvm-d0d8878fb6418dfa666a4a33e64b002d750389fb.tar.gz
bcm5719-llvm-d0d8878fb6418dfa666a4a33e64b002d750389fb.zip
[clang-tidy] Don't use delegating constructors, since they are not supported by MSVC 2013
llvm-svn: 259214
Diffstat (limited to 'clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.h')
-rw-r--r--clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.h b/clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.h
index 5131cf405b1..913ee96d574 100644
--- a/clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.h
+++ b/clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.h
@@ -21,9 +21,10 @@ namespace performance {
// isn't any implicit conversion).
class ImplicitCastInLoopCheck : public ClangTidyCheck {
public:
- using ClangTidyCheck::ClangTidyCheck;
- void registerMatchers(ast_matchers::MatchFinder *Finder) override;
- void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
+ ImplicitCastInLoopCheck(StringRef Name, ClangTidyContext *Context)
+ : ClangTidyCheck(Name, Context) {}
+ void registerMatchers(ast_matchers::MatchFinder *Finder) override;
+ void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
private:
void ReportAndFix(const ASTContext *Context, const VarDecl *VD,
OpenPOWER on IntegriCloud