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
514 ConsumedStateMap *StateMap) in ConsumedStmtVisitor() argument
515 : AC(AC), Analyzer(Analyzer), StateMap(StateMap) {} in ConsumedStmtVisitor()
527 StateMap = NewStateMap; in reset()
546 ConsumedState CS = PInfo.getAsState(StateMap); in copyInfo()
550 setStateForVarOrTmp(StateMap, PInfo, NS); in copyInfo()
560 return PInfo.getAsState(StateMap); in getInfo()
572 setStateForVarOrTmp(StateMap, PInfo, NS); in setInfo()
590 ConsumedState VarState = StateMap->getState(PInfo.getVar()); in checkCallability()
600 ConsumedState TmpState = PInfo.getAsState(StateMap); in checkCallability()
637 ConsumedState ParamState = PInfo.getAsState(StateMap); in handleCall()
651 setStateForVarOrTmp(StateMap, PInfo, consumed::CS_Consumed); in handleCall()
653 setStateForVarOrTmp(StateMap, PInfo, mapReturnTypestateAttrState(RT)); in handleCall()
657 setStateForVarOrTmp(StateMap, PInfo, consumed::CS_Unknown); in handleCall()
671 StateMap->setState(PInfo.getVar(), mapSetTypestateAttrState(STA)); in handleCall()
675 StateMap->setState(PInfo.getTmp(), mapSetTypestateAttrState(STA)); in handleCall()
775 StateMap->setState(Temp, Entry->second.getAsState(StateMap)); in VisitCXXBindTemporaryExpr()
848 if (StateMap->getState(Var) != consumed::CS_None) in VisitDeclRefExpr()
889 StateMap->setState(Param, ParamState); in VisitParmVarDecl()
899 ConsumedState RetState = Entry->second.getAsState(StateMap); in VisitReturnStmt()
908 StateMap->checkParamsForReturnTypestate(Ret->getLocStart(), in VisitReturnStmt()
938 ConsumedState St = PInfo.getAsState(StateMap); in VisitVarDecl()
941 StateMap->setState(Var, St); in VisitVarDecl()
947 StateMap->setState(Var, consumed::CS_Unknown); in VisitVarDecl()
1048 const CFGBlock *Block, ConsumedStateMap *StateMap, in addInfo() argument
1056 Entry->intersect(*StateMap); in addInfo()
1060 Entry = llvm::make_unique<ConsumedStateMap>(*StateMap); in addInfo()
1064 std::unique_ptr<ConsumedStateMap> StateMap) { in addInfo() argument
1071 Entry->intersect(*StateMap); in addInfo()
1073 Entry = std::move(StateMap); in addInfo()