aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp
diff options
context:
space:
mode:
authorMarek Kurdej <marek.kurdej@gmail.com>2016-10-14 08:10:08 +0000
committerMarek Kurdej <marek.kurdej@gmail.com>2016-10-14 08:10:08 +0000
commit505434bd28625fcfbacf32798381d75e4acbdc6c (patch)
treee3f35a3184c3964cc1180915f42cd22dab3f0509 /clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp
parent174d2e784b0688d281c1eece3d6ee17be8868945 (diff)
downloadllvm-505434bd28625fcfbacf32798381d75e4acbdc6c.zip
llvm-505434bd28625fcfbacf32798381d75e4acbdc6c.tar.gz
llvm-505434bd28625fcfbacf32798381d75e4acbdc6c.tar.bz2
[clang-tidy] Fix readability-braces-around-statements false positive
Summary: This fixes a false-positive e.g. when string literals are returned from if statement. This patch includes as well a small fix to includes and renames of the test suite that collided with the name of the check. Reviewers: alexfh, hokein Subscribers: hokein Tags: #clang-tools-extra Differential Revision: https://reviews.llvm.org/D25558 llvm-svn: 284212
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp b/clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp
index 498a95c..fdeda99 100644
--- a/clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp
+++ b/clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp
@@ -8,7 +8,8 @@
//===----------------------------------------------------------------------===//
#include "UseUsingCheck.h"
-#include "../utils/LexerUtils.h"
+#include "clang/AST/ASTContext.h"
+#include "clang/Lex/Lexer.h"
using namespace clang::ast_matchers;