diff options
| author | Alexander Kornienko <alexfh@google.com> | 2016-12-13 16:19:19 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2016-12-13 16:19:19 +0000 |
| commit | 9f58fe08bf08cf5b7dd2815eb9fe19158eb2f2c1 (patch) | |
| tree | 283b26496c1902921334f9a6855b2df64a66122d /clang-tools-extra/clang-tidy/readability/RedundantStringCStrCheck.cpp | |
| parent | dc4edba5761d89ac86783483ade008a76e503cc4 (diff) | |
| download | bcm5719-llvm-9f58fe08bf08cf5b7dd2815eb9fe19158eb2f2c1.tar.gz bcm5719-llvm-9f58fe08bf08cf5b7dd2815eb9fe19158eb2f2c1.zip | |
Remove deprecated methods ast_matchers::BoundNodes::{getStmtAs,getDeclAs}
llvm-svn: 289542
Diffstat (limited to 'clang-tools-extra/clang-tidy/readability/RedundantStringCStrCheck.cpp')
| -rw-r--r-- | clang-tools-extra/clang-tidy/readability/RedundantStringCStrCheck.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/clang-tidy/readability/RedundantStringCStrCheck.cpp b/clang-tools-extra/clang-tidy/readability/RedundantStringCStrCheck.cpp index 8f086b87858..c6b384b3ac4 100644 --- a/clang-tools-extra/clang-tidy/readability/RedundantStringCStrCheck.cpp +++ b/clang-tools-extra/clang-tidy/readability/RedundantStringCStrCheck.cpp @@ -177,9 +177,9 @@ void RedundantStringCStrCheck::registerMatchers( } void RedundantStringCStrCheck::check(const MatchFinder::MatchResult &Result) { - const auto *Call = Result.Nodes.getStmtAs<CallExpr>("call"); - const auto *Arg = Result.Nodes.getStmtAs<Expr>("arg"); - const auto *Member = Result.Nodes.getStmtAs<MemberExpr>("member"); + const auto *Call = Result.Nodes.getNodeAs<CallExpr>("call"); + const auto *Arg = Result.Nodes.getNodeAs<Expr>("arg"); + const auto *Member = Result.Nodes.getNodeAs<MemberExpr>("member"); bool Arrow = Member->isArrow(); // Replace the "call" node with the "arg" node, prefixed with '*' // if the call was using '->' rather than '.'. |

