Home
last modified time | relevance | path

Searched refs:ExprNode (Results 1 – 14 of 14) sorted by relevance

/external/bcc/src/cc/frontends/b/
Dparser.yy57 ExprNode *expr;
176 { $$ = new ExprStmtNode(ExprNode::Ptr($1));
179 { $$ = new ExprStmtNode(ExprNode::Ptr($1));
182 { $$ = new ExprStmtNode(ExprNode::Ptr($1));
185 { $$ = new ExprStmtNode(ExprNode::Ptr($1));
190 { $$ = new ExprStmtNode(ExprNode::Ptr($1));
353 : expr { $$ = new ExprNodeList; $$->push_back(ExprNode::Ptr($1)); }
354 | init_args TCOMMA expr { $$->push_back(ExprNode::Ptr($3)); }
359 : init_arg_kv { $$ = new ExprNodeList; $$->push_back(ExprNode::Ptr($1)); }
360 | init_args_kv TCOMMA init_arg_kv { $$->push_back(ExprNode::Ptr($3)); }
[all …]
Dnode.h139 class ExprNode : public Node {
141 typedef unique_ptr<ExprNode> Ptr;
150 ExprNode() : typeof_(UNKNOWN), struct_type_(NULL), flags_(1 << READ) {} in ExprNode() function
151 void copy_type(const ExprNode& other) { in copy_type()
162 typedef vector<ExprNode::Ptr> ExprNodeList;
164 class IdentExprNode : public ExprNode {
222 class BitopExprNode : public ExprNode {
226 ExprNode::Ptr expr_;
235 class AssignExprNode : public ExprNode {
240 ExprNode::Ptr lhs_;
[all …]
Dtype_check.cc68 if (n->cond_->typeof_ != ExprNode::INTEGER) in visit_switch_stmt_node()
80 if (n->value_->typeof_ != ExprNode::INTEGER) in visit_case_stmt_node()
92 n->typeof_ = ExprNode::UNKNOWN; in visit_ident_expr_node()
95 n->typeof_ = ExprNode::INTEGER; in visit_ident_expr_node()
97 n->flags_[ExprNode::WRITE] = true; in visit_ident_expr_node()
99 n->typeof_ = ExprNode::STRUCT; in visit_ident_expr_node()
103 n->flags_[ExprNode::PROTO] = true; in visit_ident_expr_node()
117 n->flags_[ExprNode::PROTO] = true; in visit_ident_expr_node()
130 n->typeof_ = ExprNode::INTEGER; in visit_ident_expr_node()
132 n->flags_[ExprNode::WRITE] = true; in visit_ident_expr_node()
[all …]
Dparser.h43 …VariableDeclStmtNode * variable_add(vector<int> *types, VariableDeclStmtNode *decl, ExprNode *init…
Dparser.cc48 VariableDeclStmtNode *Parser::variable_add(vector<int> *types, VariableDeclStmtNode *decl, ExprNode in variable_add()
49 AssignExprNode::Ptr assign(new AssignExprNode(decl->id_->copy(), ExprNode::Ptr(init_expr))); in variable_add()
Dcodegen_llvm.cc325 if (n->lhs_->flags_[ExprNode::PROTO]) { in visit_assign_expr_node()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DRedundantStringCStrCheck.cpp28 bool needParensAfterUnaryOperator(const Expr &ExprNode) { in needParensAfterUnaryOperator() argument
29 if (isa<clang::BinaryOperator>(&ExprNode) || in needParensAfterUnaryOperator()
30 isa<clang::ConditionalOperator>(&ExprNode)) { in needParensAfterUnaryOperator()
33 if (const auto *Op = dyn_cast<CXXOperatorCallExpr>(&ExprNode)) { in needParensAfterUnaryOperator()
45 const Expr &ExprNode) { in formatDereference() argument
46 if (const auto *Op = dyn_cast<clang::UnaryOperator>(&ExprNode)) { in formatDereference()
53 StringRef Text = tooling::fixit::getText(ExprNode, *Result.Context); in formatDereference()
58 if (needParensAfterUnaryOperator(ExprNode)) { in formatDereference()
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorSyclConvertToDeviceExpression.h95 #define KERNELBROKERCONVERT(CVQual, Res, ExprNode)\ argument
97 struct ConvertToDeviceExpression<CVQual ExprNode<Expr> > \
98 : DeviceConvertor<ExprNode, Res, Expr>{};
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DExtractVariable.cpp41 const SelectionTree::Node *getExprNode() const { return ExprNode; } in getExprNode()
55 const SelectionTree::Node *ExprNode; member in clang::clangd::__anon7cb06a760111::ExtractionContext
89 : ExprNode(Node), SM(SM), Ctx(Ctx) { in ExtractionContext()
314 getBinaryOperatorRange(*ExprNode, SM, Ctx.getLangOpts()); in getExtractionChars()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h2438 const Expr *ExprNode = Node.getImplicitObjectArgument() in AST_MATCHER_P() local
2440 return (ExprNode != nullptr && in AST_MATCHER_P()
2441 InnerMatcher.matches(*ExprNode, Finder, Builder)); in AST_MATCHER_P()
2559 const Expr *ExprNode = Node.getCallee(); in AST_MATCHER_P() local
2560 return (ExprNode != nullptr && in AST_MATCHER_P()
2561 InnerMatcher.matches(*ExprNode, Finder, Builder)); in AST_MATCHER_P()
2721 const Expr *ExprNode = Node.getImplicitObjectArgument(); in AST_MATCHER_P() local
2722 return (ExprNode != nullptr && in AST_MATCHER_P()
2723 InnerMatcher.matches(*ExprNode, Finder, Builder)); in AST_MATCHER_P()
/external/llvm-project/clang/include/clang/ASTMatchers/
DASTMatchers.h3371 const Expr *ExprNode = Node.getImplicitObjectArgument() in AST_MATCHER_P() local
3373 return (ExprNode != nullptr && in AST_MATCHER_P()
3374 InnerMatcher.matches(*ExprNode, Finder, Builder)); in AST_MATCHER_P()
3588 const Expr *ExprNode = Node.getCallee(); in AST_MATCHER_P() local
3589 return (ExprNode != nullptr && in AST_MATCHER_P()
3590 InnerMatcher.matches(*ExprNode, Finder, Builder)); in AST_MATCHER_P()
3802 const Expr *ExprNode = Node.getImplicitObjectArgument(); in AST_MATCHER_P() local
3803 return (ExprNode != nullptr && in AST_MATCHER_P()
3804 InnerMatcher.matches(*ExprNode, Finder, Builder)); in AST_MATCHER_P()
/external/clang/lib/ASTMatchers/
DASTMatchFinder.cpp151 const Expr *ExprNode = dyn_cast_or_null<Expr>(StmtNode); in TraverseStmt() local
152 if (ExprNode) { in TraverseStmt()
153 StmtToTraverse = ExprNode->IgnoreParenImpCasts(); in TraverseStmt()
/external/llvm-project/clang/lib/AST/
DExpr.cpp2848 Expr *ExprNode = C->getImplicitObjectArgument(); in IgnoreUnlessSpelledInSource() local
2849 if (ExprNode->getSourceRange() == E->getSourceRange()) { in IgnoreUnlessSpelledInSource()
2850 return ExprNode; in IgnoreUnlessSpelledInSource()
2852 if (auto *PE = dyn_cast<ParenExpr>(ExprNode)) { in IgnoreUnlessSpelledInSource()
2857 ExprNode = ExprNode->IgnoreParenImpCasts(); in IgnoreUnlessSpelledInSource()
2858 if (ExprNode->getSourceRange() == E->getSourceRange()) in IgnoreUnlessSpelledInSource()
2859 return ExprNode; in IgnoreUnlessSpelledInSource()
/external/llvm-project/clang/lib/ASTMatchers/
DASTMatchFinder.cpp161 if (auto *ExprNode = dyn_cast_or_null<Expr>(StmtNode)) { in getStmtToTraverse() local
168 ExprNode); in getStmtToTraverse()