diff options
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 '.'. |

