diff options
author | Piotr Padlewski <piotr.padlewski@gmail.com> | 2016-12-14 15:29:23 +0000 |
---|---|---|
committer | Piotr Padlewski <piotr.padlewski@gmail.com> | 2016-12-14 15:29:23 +0000 |
commit | 08124b110a9e1ffc285998db1abd42e72ab83c8b (patch) | |
tree | f725b8751aa4b9e95f1791bd97775d39afbcadce /clang-tools-extra/clang-tidy/llvm | |
parent | facbd356963fcf417062e2838d676b1b29ebcf00 (diff) | |
download | bcm5719-llvm-08124b110a9e1ffc285998db1abd42e72ab83c8b.tar.gz bcm5719-llvm-08124b110a9e1ffc285998db1abd42e72ab83c8b.zip |
modernize-use-auto NFC fixes
llvm-svn: 289656
Diffstat (limited to 'clang-tools-extra/clang-tidy/llvm')
-rw-r--r-- | clang-tools-extra/clang-tidy/llvm/TwineLocalCheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/llvm/TwineLocalCheck.cpp b/clang-tools-extra/clang-tidy/llvm/TwineLocalCheck.cpp index 64444dbd307..3fb5f5d9f0a 100644 --- a/clang-tools-extra/clang-tidy/llvm/TwineLocalCheck.cpp +++ b/clang-tools-extra/clang-tidy/llvm/TwineLocalCheck.cpp @@ -25,7 +25,7 @@ void TwineLocalCheck::registerMatchers(MatchFinder *Finder) { } void TwineLocalCheck::check(const MatchFinder::MatchResult &Result) { - const VarDecl *VD = Result.Nodes.getNodeAs<VarDecl>("variable"); + const auto *VD = Result.Nodes.getNodeAs<VarDecl>("variable"); auto Diag = diag(VD->getLocation(), "twine variables are prone to use-after-free bugs"); |