From 325aced3ecc549d43265c3f539b2e8742b1bdf96 Mon Sep 17 00:00:00 2001 From: wey-gu <1651790+wey-gu@users.noreply.github.com> Date: Mon, 21 Mar 2022 09:57:33 +0800 Subject: [PATCH] clang-format-10 --- src/graph/visitor/VidExtractVisitor.cpp | 19 +++++++++---------- src/graph/visitor/VidExtractVisitor.h | 2 +- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/graph/visitor/VidExtractVisitor.cpp b/src/graph/visitor/VidExtractVisitor.cpp index d0da69aecdd..3ec4f9bc04f 100644 --- a/src/graph/visitor/VidExtractVisitor.cpp +++ b/src/graph/visitor/VidExtractVisitor.cpp @@ -2,10 +2,10 @@ * * This source code is licensed under Apache 2.0 License. */ -#include "graph/context/QueryContext.h" - #include "graph/visitor/VidExtractVisitor.h" +#include "graph/context/QueryContext.h" + #include "graph/util/ExpressionUtils.h" namespace nebula { @@ -167,10 +167,9 @@ void VidExtractVisitor::visit(RelationalExpression *expr) { } auto rightListValue = expr->right()->eval(graph::QueryExpressionContext(qctx_->ectx())()); - vidPattern_ = - VidPattern{VidPattern::Special::kInUsed, - {{fCallExpr->args()->args().front()->toString(), - {VidPattern::Vids::Kind::kIn, rightListValue.getList()}}}}; + vidPattern_ = VidPattern{VidPattern::Special::kInUsed, + {{fCallExpr->args()->args().front()->toString(), + {VidPattern::Vids::Kind::kIn, rightListValue.getList()}}}}; } else if (expr->kind() == Expression::Kind::kRelEQ) { // id(V) == vid if (expr->left()->kind() == Expression::Kind::kLabelAttribute) { @@ -206,15 +205,15 @@ void VidExtractVisitor::visit(RelationalExpression *expr) { return; } vidPattern_ = VidPattern{VidPattern::Special::kInUsed, - {{fCallExpr->args()->args().front()->toString(), - {VidPattern::Vids::Kind::kIn, List({constExpr->value()})}}}}; + {{fCallExpr->args()->args().front()->toString(), + {VidPattern::Vids::Kind::kIn, List({constExpr->value()})}}}}; } else if (expr->right()->kind() == Expression::Kind::kVar && ExpressionUtils::isEvaluableExpr(expr->right(), qctx_)) { auto rValue = expr->right()->eval(graph::QueryExpressionContext(qctx_->ectx())()); if (SchemaUtil::isValidVid(rValue)) { vidPattern_ = VidPattern{VidPattern::Special::kInUsed, - {{fCallExpr->args()->args().front()->toString(), - {VidPattern::Vids::Kind::kIn, List({rValue})}}}}; + {{fCallExpr->args()->args().front()->toString(), + {VidPattern::Vids::Kind::kIn, List({rValue})}}}}; return; } else { vidPattern_ = VidPattern{}; diff --git a/src/graph/visitor/VidExtractVisitor.h b/src/graph/visitor/VidExtractVisitor.h index 63889996dc2..009cc291cd8 100644 --- a/src/graph/visitor/VidExtractVisitor.h +++ b/src/graph/visitor/VidExtractVisitor.h @@ -9,8 +9,8 @@ #include #include "common/expression/ExprVisitor.h" -#include "graph/util/SchemaUtil.h" #include "graph/context/QueryContext.h" +#include "graph/util/SchemaUtil.h" namespace nebula {