diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-07-08 15:41:20 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-07-08 15:41:20 +0000 |
commit | ee5872187571906c4430e181184142112742468c (patch) | |
tree | 04c1567ffaf2cb2afeece5e5a7574917fe27b8cd /clang-tools-extra/clang-tidy/llvm/TwineLocalCheck.cpp | |
parent | d261e98f3db16c0ba257878d2662d6e39e9bfa0f (diff) | |
download | bcm5719-llvm-ee5872187571906c4430e181184142112742468c.tar.gz bcm5719-llvm-ee5872187571906c4430e181184142112742468c.zip |
[clang-tidy] Address review comments for the Twine checker.
- Remove unused includes.
- Minor wording fix.
- Added support to check for clang-tidy messages to check_clang_tidy_fix.sh
= Updated test case.
llvm-svn: 212540
Diffstat (limited to 'clang-tools-extra/clang-tidy/llvm/TwineLocalCheck.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/llvm/TwineLocalCheck.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-tidy/llvm/TwineLocalCheck.cpp b/clang-tools-extra/clang-tidy/llvm/TwineLocalCheck.cpp index f30628e23b6..bc255aaa35c 100644 --- a/clang-tools-extra/clang-tidy/llvm/TwineLocalCheck.cpp +++ b/clang-tools-extra/clang-tidy/llvm/TwineLocalCheck.cpp @@ -11,7 +11,6 @@ #include "clang/AST/ASTContext.h" #include "clang/ASTMatchers/ASTMatchers.h" #include "clang/Lex/Lexer.h" -#include "llvm/Support/raw_ostream.h" using namespace clang::ast_matchers; @@ -29,7 +28,7 @@ void TwineLocalCheck::registerMatchers(MatchFinder *Finder) { void TwineLocalCheck::check(const MatchFinder::MatchResult &Result) { const VarDecl *VD = Result.Nodes.getNodeAs<VarDecl>("variable"); auto Diag = diag(VD->getLocation(), - "twine variables are prone to use after free bugs"); + "twine variables are prone to use-after-free bugs"); // If this VarDecl has an initializer try to fix it. if (VD->hasInit()) { |