Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A 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()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DExtractVariable.cpp40 const SelectionTree::Node *getExprNode() const { return ExprNode; } in getExprNode()
55 const SelectionTree::Node *ExprNode; member in clang::clangd::__anon79575e0f0111::ExtractionContext
114 : ExprNode(Node), SM(SM), Ctx(Ctx) { in ExtractionContext()
210 printType(VarType, ExprNode->getDeclContext(), VarName) + " = " + in insertDeclaration()
345 getBinaryOperatorRange(*ExprNode, SM, Ctx.getLangOpts()); in getExtractionChars()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DBugReporterVisitors.cpp2242 const ExplodedNode *ExprNode, in handle() argument
2263 ExprNode = ExprNode->getFirstPred(); in handle()
2264 if (!ExprNode) in handle()
2267 const StackFrameContext *PredSFC = ExprNode->getStackFrame(); in handle()
2279 } while (ExprNode->getStackFrame() == CurrentSFC); in handle()
2282 while (ExprNode && ExprNode->getLocation().getAs<PostStmt>()) in handle()
2283 ExprNode = ExprNode->getFirstPred(); in handle()
2284 if (!ExprNode) in handle()
2297 ProgramStateRef State = ExprNode->getState(); in handle()
2298 SVal RetVal = ExprNode->getSVal(E); in handle()
[all …]
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h3620 const Expr *ExprNode = Node.getImplicitObjectArgument() in AST_MATCHER_P() local
3622 return (ExprNode != nullptr && in AST_MATCHER_P()
3623 InnerMatcher.matches(*ExprNode, Finder, Builder)); in AST_MATCHER_P()
3836 const Expr *ExprNode = Node.getCallee(); in AST_MATCHER_P() local
3837 return (ExprNode != nullptr && in AST_MATCHER_P()
3838 InnerMatcher.matches(*ExprNode, Finder, Builder)); in AST_MATCHER_P()
4110 const Expr *ExprNode = Node.getImplicitObjectArgument(); in AST_MATCHER_P() local
4111 return (ExprNode != nullptr && in AST_MATCHER_P()
4112 InnerMatcher.matches(*ExprNode, Finder, Builder)); in AST_MATCHER_P()
/llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/BugReporter/
H A DBugReporterVisitors.h307 const ExplodedNode *ExprNode,
/llvm-project-15.0.7/clang/lib/AST/
H A DExpr.cpp3027 Expr *ExprNode = C->getImplicitObjectArgument(); in IgnoreUnlessSpelledInSource() local
3028 if (ExprNode->getSourceRange() == E->getSourceRange()) { in IgnoreUnlessSpelledInSource()
3029 return ExprNode; in IgnoreUnlessSpelledInSource()
3031 if (auto *PE = dyn_cast<ParenExpr>(ExprNode)) { in IgnoreUnlessSpelledInSource()
3036 ExprNode = ExprNode->IgnoreParenImpCasts(); in IgnoreUnlessSpelledInSource()
3037 if (ExprNode->getSourceRange() == E->getSourceRange()) in IgnoreUnlessSpelledInSource()
3038 return ExprNode; in IgnoreUnlessSpelledInSource()
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp164 if (auto *ExprNode = dyn_cast_or_null<Expr>(StmtNode)) { in getStmtToTraverse() local
171 ExprNode); in getStmtToTraverse()