Home
last modified time | relevance | path

Searched refs:getNodeAs (Results 1 – 25 of 28) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DNumberObjectConversionChecker.cpp66 (Result.Nodes.getNodeAs<Stmt>("pedantic") != nullptr); in run()
73 Result.Nodes.getNodeAs<Expr>("check_if_null")) { in run()
102 const Stmt *Conv = Result.Nodes.getNodeAs<Stmt>("conv"); in run()
105 const Expr *ConvertedCObject = Result.Nodes.getNodeAs<Expr>("c_object"); in run()
106 const Expr *ConvertedCppObject = Result.Nodes.getNodeAs<Expr>("cpp_object"); in run()
107 const Expr *ConvertedObjCObject = Result.Nodes.getNodeAs<Expr>("objc_object"); in run()
116 (Result.Nodes.getNodeAs<Stmt>("comparison") != nullptr); in run()
119 (Result.Nodes.getNodeAs<Decl>("osnumber") != nullptr); in run()
122 (Result.Nodes.getNodeAs<QualType>("int_type") != nullptr); in run()
124 (Result.Nodes.getNodeAs<QualType>("objc_bool_type") != nullptr); in run()
[all …]
H A DRunLoopAutoreleaseLeakChecker.cpp91 const auto *ME = Match.getNodeAs<ObjCMessageExpr>(OtherMsgBind); in emitDiagnostics()
95 Match.getNodeAs<ObjCAutoreleasePoolStmt>(AutoreleasePoolBind); in emitDiagnostics()
97 Match.getNodeAs<ObjCAutoreleasePoolStmt>(OtherStmtAutoreleasePoolBind); in emitDiagnostics()
100 const auto *RL = Match.getNodeAs<ObjCMessageExpr>(RunLoopBind); in emitDiagnostics()
101 const auto *RLR = Match.getNodeAs<Stmt>(RunLoopRunBind); in emitDiagnostics()
H A DObjCAutoreleaseWriteChecker.cpp116 const auto *PVD = Match.getNodeAs<ParmVarDecl>(ParamBind); in emitDiagnostics()
121 const auto *MarkedStmt = Match.getNodeAs<Expr>(ProblematicWriteBind); in emitDiagnostics()
126 MarkedStmt = Match.getNodeAs<Expr>(CapturedBind); in emitDiagnostics()
136 bool IsMethod = Match.getNodeAs<ObjCMethodDecl>(IsMethodBind) != nullptr; in emitDiagnostics()
138 bool IsARP = Match.getNodeAs<ObjCAutoreleasePoolStmt>(IsARPBind) != nullptr; in emitDiagnostics()
H A DOSObjectCStyleCast.cpp55 const auto *CE = Nodes.getNodeAs<CastExpr>(WarnAtNode); in emitDiagnostics()
56 const CXXRecordDecl *RD = Nodes.getNodeAs<CXXRecordDecl>(WarnRecordDecl); in emitDiagnostics()
H A DPointerIterationChecker.cpp40 const auto *MarkedStmt = Match.getNodeAs<Stmt>(WarnAtNode); in emitDiagnostics()
H A DPointerSortingChecker.cpp40 const auto *MarkedStmt = Match.getNodeAs<CallExpr>(WarnAtNode); in emitDiagnostics()
H A DGCDAntipatternChecker.cpp184 const auto *SW = Nodes.getNodeAs<CallExpr>(WarnAtNode); in emitDiagnostics()
H A DMallocChecker.cpp828 if (Match.getNodeAs<CXXDeleteExpr>("delete")) in doesFnIntendToHandleOwnership()
831 if (const auto *Call = Match.getNodeAs<CallExpr>("call")) in doesFnIntendToHandleOwnership()
/freebsd/contrib/llvm-project/clang/lib/Tooling/DumpTool/
H A DASTSrcLocProcessor.cpp170 if (const auto *Node = BN.getNodeAs<clang::NamedDecl>("classMethod")) { in CaptureMethods()
172 BN.getNodeAs<clang::CXXRecordDecl>("stmtOrDeclBase"); in CaptureMethods()
174 BN.getNodeAs<clang::CXXRecordDecl>("typeLocBase"); in CaptureMethods()
175 const auto *ExprBase = BN.getNodeAs<clang::CXXRecordDecl>("exprBase"); in CaptureMethods()
201 Result.Nodes.getNodeAs<clang::CXXRecordDecl>("className"); in run()
206 Result.Nodes.getNodeAs<clang::CXXRecordDecl>("nodeClade")) in run()
209 ASTClass = Result.Nodes.getNodeAs<clang::CXXRecordDecl>("templateName"); in run()
233 Result.Nodes.getNodeAs<clang::CXXRecordDecl>("derivedFrom")) { in run()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DUnsafeBufferUsage.cpp447 Op(Result.Nodes.getNodeAs<UnaryOperator>(OpTag)) {} in IncrementGadget()
482 Op(Result.Nodes.getNodeAs<UnaryOperator>(OpTag)) {} in DecrementGadget()
611 PtrInitLHS(Result.Nodes.getNodeAs<VarDecl>(PointerInitLHSTag)), in PointerInitGadget()
709 Op(Result.Nodes.getNodeAs<CallExpr>(OpTag)) {} in UnsafeBufferUsageAttrGadget()
735 Op(Result.Nodes.getNodeAs<ExplicitCastExpr>(OpTag)) {} in DataInvocationGadget()
808 Node(Result.Nodes.getNodeAs<DeclRefExpr>(DeclRefExprTag)) { in UPCStandalonePointerGadget()
845 Op(Result.Nodes.getNodeAs<UnaryOperator>(OperatorTag)) {} in PointerDereferenceGadget()
883 Node(Result.Nodes.getNodeAs<UnaryOperator>( in UPCAddressofArraySubscriptGadget()
1075 Offset(Result.Nodes.getNodeAs<Expr>(OffsetTag)) { in UUCAddAssignGadget()
1118 DerefOp(Result.Nodes.getNodeAs<UnaryOperator>(DerefOpTag)), in DerefSimplePtrArithFixableGadget()
[all …]
H A DExprMutationAnalyzer.cpp194 if (const Stmt *S = (Analyzer->*Finder)(Nodes.getNodeAs<T>(ID))) in tryEachMatch()
257 const auto *E = RefNodes.getNodeAs<Expr>(NodeID<Expr>::value); in tryEachDeclRef()
620 const auto *Exp = Nodes.getNodeAs<Expr>(NodeID<Expr>::value); in findFunctionArgMutation()
621 const auto *Func = Nodes.getNodeAs<FunctionDecl>("func"); in findFunctionArgMutation()
625 const auto *Parm = Nodes.getNodeAs<ParmVarDecl>("parm"); in findFunctionArgMutation()
/freebsd/contrib/llvm-project/clang/lib/Tooling/
H A DRefactoringCallbacks.cpp90 if (const Stmt *FromMatch = Result.Nodes.getNodeAs<Stmt>(FromId)) { in run()
108 const Stmt *FromMatch = Result.Nodes.getNodeAs<Stmt>(FromId); in run()
109 const Stmt *ToMatch = Result.Nodes.getNodeAs<Stmt>(ToId); in run()
128 if (const IfStmt *Node = Result.Nodes.getNodeAs<IfStmt>(Id)) { in run()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DRegionPrinter.cpp37 BasicBlock *BB = Node->getNodeAs<BasicBlock>(); in getNodeLabel()
70 BasicBlock *srcBB = srcNode->getNodeAs<BasicBlock>(); in getEdgeAttributes()
71 BasicBlock *destBB = destNode->getNodeAs<BasicBlock>(); in getEdgeAttributes()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DLoopUnrolling.cpp263 const auto *CounterVarRef = Matches[0].getNodeAs<DeclRefExpr>("initVarRef"); in shouldCompletelyUnroll()
265 Matches[0].getNodeAs<IntegerLiteral>("boundNum")->getValue(); in shouldCompletelyUnroll()
267 Matches[0].getNodeAs<IntegerLiteral>("initNum")->getValue(); in shouldCompletelyUnroll()
268 auto CondOp = Matches[0].getNodeAs<BinaryOperator>("conditionOperator"); in shouldCompletelyUnroll()
H A DLoopWidening.cpp76 const VarDecl *VD = Match.getNodeAs<VarDecl>(MatchRef); in getWidenedLoopState()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineRegionInfo.h112 RegionNodeBase<RegionTraits<MachineFunction>>::getNodeAs<MachineBasicBlock>()
121 RegionNodeBase<RegionTraits<MachineFunction>>::getNodeAs<MachineRegion>()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DRegionInfo.h182 template <class T> inline T *getNodeAs() const;
999 RegionNodeBase<RegionTraits<Function>>::getNodeAs<BasicBlock>() const {
1007 RegionNodeBase<RegionTraits<Function>>::getNodeAs<Region>() const {
1020 return OS << Node.template getNodeAs<RegionT>()->getNameStr();
1022 return OS << Node.template getNodeAs<BlockT>()->getName();
H A DRegionInfoImpl.h391 BlockT *BB = Element->template getNodeAs<BlockT>(); in addSubRegion()
532 const RegionT *SR = Element->template getNodeAs<RegionT>(); in verifyBBMap()
535 BlockT *BB = Element->template getNodeAs<BlockT>(); in verifyBBMap()
H A DRegionIterator.h97 return getNode()->template getNodeAs<RegionT>()->getExit(); in getRegionSucc()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DStructurizeCFG.cpp436 BasicBlock *Exit = N->getNodeAs<Region>()->getExit(); in analyzeLoops()
442 BasicBlock *BB = N->getNodeAs<BasicBlock>(); in analyzeLoops()
808 Region *SubRegion = Node->getNodeAs<Region>(); in changeExit()
839 BasicBlock *BB = Node->getNodeAs<BasicBlock>(); in changeExit()
1095 for (auto *BB : E->getNodeAs<Region>()->blocks()) { in hasOnlyUniformBranches()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedObjectChecker.cpp560 const auto *FirstAccess = Accesses[0].getNodeAs<MemberExpr>("access"); in hasUnguardedAccess()
566 const auto *FirstGuard = Guards[0].getNodeAs<Stmt>("guard"); in hasUnguardedAccess()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DStencil.cpp151 const auto *E = Match.Nodes.getNodeAs<Expr>(Id); in eval()
277 const auto *E = Match.Nodes.getNodeAs<Expr>(BaseId); in eval()
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchFinder.h280 if (const NodeT *Node = N.getNodeAs<NodeT>(BoundTo)) in selectFirst()
H A DASTMatchers.h116 const T *getNodeAs(StringRef ID) const { in getNodeAs() function
117 return MyBoundNodes.getNodeAs<T>(ID); in getNodeAs()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp356 Result.Nodes.getNodeAs<clang::CXXMemberCallExpr>(ValueOrCallID); in transferValueOrImpl()

12