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/modernize/UseOverrideCheck.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/modernize/UseOverrideCheck.cpp')
| -rw-r--r-- | clang-tools-extra/clang-tidy/modernize/UseOverrideCheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/UseOverrideCheck.cpp b/clang-tools-extra/clang-tidy/modernize/UseOverrideCheck.cpp index 3b91c6efbb1..574d1a77b40 100644 --- a/clang-tools-extra/clang-tidy/modernize/UseOverrideCheck.cpp +++ b/clang-tools-extra/clang-tidy/modernize/UseOverrideCheck.cpp @@ -60,7 +60,7 @@ static StringRef GetText(const Token &Tok, const SourceManager &Sources) { } void UseOverrideCheck::check(const MatchFinder::MatchResult &Result) { - const FunctionDecl *Method = Result.Nodes.getStmtAs<FunctionDecl>("method"); + const FunctionDecl *Method = Result.Nodes.getNodeAs<FunctionDecl>("method"); const SourceManager &Sources = *Result.SourceManager; assert(Method != nullptr); |

