summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2016-01-29 15:22:20 +0000
committerAlexander Kornienko <alexfh@google.com>2016-01-29 15:22:20 +0000
commitbfee5f73529d1ba48746f1a059fa81e565541a23 (patch)
tree69a9193caf15dd138fd02b8f23c262fbd103ad65 /clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.cpp
parent8ac20a843978af50a5fbc4386c0659eb10eec1d5 (diff)
downloadbcm5719-llvm-bfee5f73529d1ba48746f1a059fa81e565541a23.tar.gz
bcm5719-llvm-bfee5f73529d1ba48746f1a059fa81e565541a23.zip
[clang-tidy] Fix minor style issues. NFC
llvm-svn: 259198
Diffstat (limited to 'clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.cpp b/clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.cpp
index c20598e40a4..5f3d2b2cccd 100644
--- a/clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.cpp
+++ b/clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.cpp
@@ -27,8 +27,8 @@ namespace {
// The subtelty is that in some cases (user defined conversions), we can
// get to ImplicitCastExpr inside each other, with the outer one a NoOp. In this
// case we skip the first cast expr.
-bool IsNonTrivialImplicitCast(const Stmt* ST) {
- if (const auto* ICE = dyn_cast<ImplicitCastExpr>(ST)) {
+bool IsNonTrivialImplicitCast(const Stmt *ST) {
+ if (const auto *ICE = dyn_cast<ImplicitCastExpr>(ST)) {
return (ICE->getCastKind() != CK_NoOp) ||
IsNonTrivialImplicitCast(ICE->getSubExpr());
}
@@ -57,15 +57,15 @@ void ImplicitCastInLoopCheck::registerMatchers(MatchFinder *Finder) {
}
void ImplicitCastInLoopCheck::check(const MatchFinder::MatchResult &Result) {
- const auto* VD = Result.Nodes.getNodeAs<VarDecl>("faulty-var");
- const auto* Init = Result.Nodes.getNodeAs<Expr>("init");
- const auto* OperatorCall =
+ const auto *VD = Result.Nodes.getNodeAs<VarDecl>("faulty-var");
+ const auto *Init = Result.Nodes.getNodeAs<Expr>("init");
+ const auto *OperatorCall =
Result.Nodes.getNodeAs<CXXOperatorCallExpr>("operator-call");
- if (const auto* Cleanup = dyn_cast<ExprWithCleanups>(Init))
+ if (const auto *Cleanup = dyn_cast<ExprWithCleanups>(Init))
Init = Cleanup->getSubExpr();
- const auto* Materialized = dyn_cast<MaterializeTemporaryExpr>(Init);
+ const auto *Materialized = dyn_cast<MaterializeTemporaryExpr>(Init);
if (!Materialized)
return;
OpenPOWER on IntegriCloud