Home
last modified time | relevance | path

Searched refs:getNodeAs (Results 1 – 25 of 26) 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 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 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 DOSObjectCStyleCast.cpp55 const auto *CE = Nodes.getNodeAs<CastExpr>(WarnAtNode); in emitDiagnostics()
56 const CXXRecordDecl *RD = Nodes.getNodeAs<CXXRecordDecl>(WarnRecordDecl); in emitDiagnostics()
H A DMallocChecker.cpp918 if (Match.getNodeAs<CXXDeleteExpr>("delete")) in doesFnIntendToHandleOwnership()
921 if (const auto *Call = Match.getNodeAs<CallExpr>("call")) in doesFnIntendToHandleOwnership()
H A DStreamChecker.cpp773 if (const auto *Call = Match.getNodeAs<CallExpr>("call")) in doesFnIntendToHandleOwnership()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DMemoryUnsafeCastChecker.cpp44 const auto *CE = Nodes.getNodeAs<CastExpr>(WarnRecordDecl); in emitDiagnostics()
45 const NamedDecl *Base = Nodes.getNodeAs<NamedDecl>(BaseNode); in emitDiagnostics()
46 const NamedDecl *Derived = Nodes.getNodeAs<NamedDecl>(DerivedNode); in emitDiagnostics()
64 const auto *CE = Nodes.getNodeAs<CastExpr>(WarnRecordDecl); in emitDiagnosticsUnrelated()
65 const NamedDecl *FromCast = Nodes.getNodeAs<NamedDecl>(FromCastNode); in emitDiagnosticsUnrelated()
66 const NamedDecl *ToCast = Nodes.getNodeAs<NamedDecl>(ToCastNode); in emitDiagnosticsUnrelated()
/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/Analysis/
H A DUnsafeBufferUsage.cpp103 template <typename T> const T *getNodeAs(StringRef ID) const { in getNodeAs() function in __anon8edba8be0211::MatchResult
1270 Op(Result.getNodeAs<UnaryOperator>(OpTag)) {} in IncrementGadget()
1318 Op(Result.getNodeAs<UnaryOperator>(OpTag)) {} in DecrementGadget()
1365 ASE(Result.getNodeAs<ArraySubscriptExpr>(ArraySubscrTag)) {} in ArraySubscriptGadget()
1422 PA(Result.getNodeAs<BinaryOperator>(PointerArithmeticTag)), in PointerArithmeticGadget()
1423 Ptr(Result.getNodeAs<Expr>(PointerArithmeticPointerTag)) {} in PointerArithmeticGadget()
1487 Ctor(Result.getNodeAs<CXXConstructExpr>(SpanTwoParamConstructorTag)) {} in SpanTwoParamConstructorGadget()
1550 PtrInitLHS(Result.getNodeAs<VarDecl>(PointerInitLHSTag)), in PointerInitGadget()
1551 PtrInitRHS(Result.getNodeAs<DeclRefExpr>(PointerInitRHSTag)) {} in PointerInitGadget()
1610 PtrLHS(Result.getNodeAs<DeclRefExpr>(PointerAssignLHSTag)), in PtrToPtrAssignmentGadget()
[all …]
H A DExprMutationAnalyzer.cpp251 if (const Stmt *S = (Analyzer->*Finder)(Nodes.getNodeAs<T>(ID))) in tryEachMatch()
327 const auto *E = RefNodes.getNodeAs<Expr>(NodeID<Expr>::value); in tryEachDeclRef()
687 const auto *Exp = Nodes.getNodeAs<Expr>(NodeID<Expr>::value); in findFunctionArgMutation()
688 const auto *Func = Nodes.getNodeAs<FunctionDecl>("func"); in findFunctionArgMutation()
692 const auto *Parm = Nodes.getNodeAs<ParmVarDecl>("parm"); in findFunctionArgMutation()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DLoopUnrolling.cpp280 const auto *CounterVarRef = Matches[0].getNodeAs<DeclRefExpr>("initVarRef"); in shouldCompletelyUnroll()
282 Matches[0].getNodeAs<IntegerLiteral>("boundNum")->getValue(); in shouldCompletelyUnroll()
284 Matches[0].getNodeAs<IntegerLiteral>("initNum")->getValue(); in shouldCompletelyUnroll()
285 auto CondOp = Matches[0].getNodeAs<BinaryOperator>("conditionOperator"); in shouldCompletelyUnroll()
H A DLoopWidening.cpp57 const VarDecl *VD = Match.getNodeAs<VarDecl>(MatchRef); in getWidenedLoopState()
H A DRegionStore.cpp1248 auto *VD = Match.getNodeAs<VarDecl>(DeclBind); in VisitCluster()
/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.h180 template <class T> inline T *getNodeAs() const;
997 RegionNodeBase<RegionTraits<Function>>::getNodeAs<BasicBlock>() const {
1005 RegionNodeBase<RegionTraits<Function>>::getNodeAs<Region>() const {
1018 return OS << Node.template getNodeAs<RegionT>()->getNameStr();
1020 return OS << Node.template getNodeAs<BlockT>()->getName();
H A DRegionInfoImpl.h388 BlockT *BB = Element->template getNodeAs<BlockT>(); in addSubRegion()
529 const RegionT *SR = Element->template getNodeAs<RegionT>(); in verifyBBMap()
532 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.cpp476 BasicBlock *Exit = N->getNodeAs<Region>()->getExit(); in analyzeLoops()
482 BasicBlock *BB = N->getNodeAs<BasicBlock>(); in analyzeLoops()
933 Region *SubRegion = Node->getNodeAs<Region>(); in changeExit()
964 BasicBlock *BB = Node->getNodeAs<BasicBlock>(); in changeExit()
1213 for (auto *BB : E->getNodeAs<Region>()->blocks()) { in hasOnlyUniformBranches()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedObjectChecker.cpp562 const auto *FirstAccess = Accesses[0].getNodeAs<MemberExpr>("access"); in hasUnguardedAccess()
568 const auto *FirstGuard = Guards[0].getNodeAs<Stmt>("guard"); in hasUnguardedAccess()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DStencil.cpp155 const auto *E = Match.Nodes.getNodeAs<Expr>(Id); in eval()
281 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.h118 const T *getNodeAs(StringRef ID) const { in getNodeAs() function
119 return MyBoundNodes.getNodeAs<T>(ID); in getNodeAs()
H A DASTMatchersInternal.h228 const T *getNodeAs(StringRef ID) const {
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp488 Result.Nodes.getNodeAs<clang::CXXMemberCallExpr>(ValueOrCallID); in transferValueOrImpl()

12