diff options
author | Yitzhak Mandelbaum <yitzhakm@google.com> | 2019-08-26 15:27:05 +0000 |
---|---|---|
committer | Yitzhak Mandelbaum <yitzhakm@google.com> | 2019-08-26 15:27:05 +0000 |
commit | 0cd4ab91abee8e5de876514dcc4479aadfe4417d (patch) | |
tree | 5ee8b6715e7c214d129fecd012abc1082cce509f /clang-tools-extra/unittests/clang-tidy/TransformerClangTidyCheckTest.cpp | |
parent | 640230cc97f723a97fe8599e6b2fa1918bc235b8 (diff) | |
download | bcm5719-llvm-0cd4ab91abee8e5de876514dcc4479aadfe4417d.tar.gz bcm5719-llvm-0cd4ab91abee8e5de876514dcc4479aadfe4417d.zip |
[clang-tidy][NFC] Qualify `makeRule` call in test, for consistency with other calls.
One call `makeRule` is unqualified (and unintentionally relying on ADL to
resolve correctly). This revision qualifies that call for consistency and to
drop use of ADL.
llvm-svn: 369915
Diffstat (limited to 'clang-tools-extra/unittests/clang-tidy/TransformerClangTidyCheckTest.cpp')
-rw-r--r-- | clang-tools-extra/unittests/clang-tidy/TransformerClangTidyCheckTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang-tools-extra/unittests/clang-tidy/TransformerClangTidyCheckTest.cpp b/clang-tools-extra/unittests/clang-tidy/TransformerClangTidyCheckTest.cpp index 9d26f9949fc..a1bdbab22f1 100644 --- a/clang-tools-extra/unittests/clang-tidy/TransformerClangTidyCheckTest.cpp +++ b/clang-tools-extra/unittests/clang-tidy/TransformerClangTidyCheckTest.cpp @@ -174,8 +174,9 @@ TEST(TransformerClangTidyCheckTest, DisableByConfig) { RewriteRule replaceCall(IncludeFormat Format) { using namespace ::clang::ast_matchers; - RewriteRule Rule = makeRule(callExpr(callee(functionDecl(hasName("f")))), - change(text("other()")), text("no message")); + RewriteRule Rule = + tooling::makeRule(callExpr(callee(functionDecl(hasName("f")))), + change(text("other()")), text("no message")); addInclude(Rule, "clang/OtherLib.h", Format); return Rule; } |