Lines Matching refs:StateMap

388   ConsumedState getAsState(const ConsumedStateMap *StateMap) const {  in getAsState()
392 return StateMap->getState(Var); in getAsState()
394 return StateMap->getState(Tmp); in getAsState()
445 setStateForVarOrTmp(ConsumedStateMap *StateMap, const PropagationInfo &PInfo, in setStateForVarOrTmp() argument
451 StateMap->setState(PInfo.getVar(), State); in setStateForVarOrTmp()
453 StateMap->setState(PInfo.getTmp(), State); in setStateForVarOrTmp()
465 ConsumedStateMap *StateMap; member in clang::consumed::ConsumedStmtVisitor
508 ConsumedStateMap *StateMap) in ConsumedStmtVisitor() argument
509 : AC(AC), Analyzer(Analyzer), StateMap(StateMap) {} in ConsumedStmtVisitor()
521 StateMap = NewStateMap; in reset()
540 ConsumedState CS = PInfo.getAsState(StateMap); in copyInfo()
544 setStateForVarOrTmp(StateMap, PInfo, NS); in copyInfo()
554 return PInfo.getAsState(StateMap); in getInfo()
566 setStateForVarOrTmp(StateMap, PInfo, NS); in setInfo()
584 ConsumedState VarState = StateMap->getState(PInfo.getVar()); in checkCallability()
594 ConsumedState TmpState = PInfo.getAsState(StateMap); in checkCallability()
631 ConsumedState ParamState = PInfo.getAsState(StateMap); in handleCall()
645 setStateForVarOrTmp(StateMap, PInfo, consumed::CS_Consumed); in handleCall()
647 setStateForVarOrTmp(StateMap, PInfo, mapReturnTypestateAttrState(RT)); in handleCall()
651 setStateForVarOrTmp(StateMap, PInfo, consumed::CS_Unknown); in handleCall()
665 StateMap->setState(PInfo.getVar(), mapSetTypestateAttrState(STA)); in handleCall()
669 StateMap->setState(PInfo.getTmp(), mapSetTypestateAttrState(STA)); in handleCall()
769 StateMap->setState(Temp, Entry->second.getAsState(StateMap)); in VisitCXXBindTemporaryExpr()
842 if (StateMap->getState(Var) != consumed::CS_None) in VisitDeclRefExpr()
883 StateMap->setState(Param, ParamState); in VisitParmVarDecl()
893 ConsumedState RetState = Entry->second.getAsState(StateMap); in VisitReturnStmt()
902 StateMap->checkParamsForReturnTypestate(Ret->getLocStart(), in VisitReturnStmt()
932 ConsumedState St = PInfo.getAsState(StateMap); in VisitVarDecl()
935 StateMap->setState(Var, St); in VisitVarDecl()
941 StateMap->setState(Var, consumed::CS_Unknown); in VisitVarDecl()
1042 const CFGBlock *Block, ConsumedStateMap *StateMap, in addInfo() argument
1050 Entry->intersect(*StateMap); in addInfo()
1054 Entry = llvm::make_unique<ConsumedStateMap>(*StateMap); in addInfo()
1058 std::unique_ptr<ConsumedStateMap> StateMap) { in addInfo() argument
1065 Entry->intersect(*StateMap); in addInfo()
1067 Entry = std::move(StateMap); in addInfo()