[clang-tools-extra] r284370 - Fix windows buildbot error.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 17 03:05:26 PDT 2016
Author: hokein
Date: Mon Oct 17 05:05:25 2016
New Revision: 284370
URL: http://llvm.org/viewvc/llvm-project?rev=284370&view=rev
Log:
Fix windows buildbot error.
Modified:
clang-tools-extra/trunk/unittests/clang-tidy/NamespaceAliaserTest.cpp
clang-tools-extra/trunk/unittests/clang-tidy/UsingInserterTest.cpp
Modified: clang-tools-extra/trunk/unittests/clang-tidy/NamespaceAliaserTest.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-tidy/NamespaceAliaserTest.cpp?rev=284370&r1=284369&r2=284370&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-tidy/NamespaceAliaserTest.cpp (original)
+++ clang-tools-extra/trunk/unittests/clang-tidy/NamespaceAliaserTest.cpp Mon Oct 17 05:05:25 2016
@@ -22,12 +22,12 @@ namespace utils {
// (e.g. with one SourceManager).
class InsertAliasCheck : public ClangTidyCheck {
public:
- using ClangTidyCheck::ClangTidyCheck;
+ InsertAliasCheck(StringRef Name, ClangTidyContext *Context)
+ :ClangTidyCheck(Name, Context) {}
void registerMatchers(ast_matchers::MatchFinder *Finder) override {
Finder->addMatcher(ast_matchers::callExpr().bind("foo"), this);
}
- void
- check(const ast_matchers::MatchFinder::MatchResult &Result) override {
+ void check(const ast_matchers::MatchFinder::MatchResult &Result) override {
if (!Aliaser)
Aliaser.reset(new NamespaceAliaser(*Result.SourceManager));
Modified: clang-tools-extra/trunk/unittests/clang-tidy/UsingInserterTest.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-tidy/UsingInserterTest.cpp?rev=284370&r1=284369&r2=284370&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-tidy/UsingInserterTest.cpp (original)
+++ clang-tools-extra/trunk/unittests/clang-tidy/UsingInserterTest.cpp Mon Oct 17 05:05:25 2016
@@ -23,7 +23,8 @@ namespace utils {
// can only run on one test case (e.g. wih one SourceManager).
class InsertUsingCheck : public clang::tidy::ClangTidyCheck {
public:
- using clang::tidy::ClangTidyCheck::ClangTidyCheck;
+ InsertUsingCheck(StringRef Name, ClangTidyContext *Context)
+ :ClangTidyCheck(Name, Context) {}
void registerMatchers(clang::ast_matchers::MatchFinder *Finder) override {
Finder->addMatcher(clang::ast_matchers::callExpr().bind("foo"), this);
}
More information about the cfe-commits
mailing list