Lines Matching refs:StateMap
386 ConsumedState getAsState(const ConsumedStateMap *StateMap) const { in getAsState()
390 return StateMap->getState(Var); in getAsState()
392 return StateMap->getState(Tmp); in getAsState()
446 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()
466 ConsumedStateMap *StateMap; member in clang::consumed::ConsumedStmtVisitor
516 ConsumedStmtVisitor(ConsumedAnalyzer &Analyzer, ConsumedStateMap *StateMap) in ConsumedStmtVisitor() argument
517 : Analyzer(Analyzer), StateMap(StateMap) {} in ConsumedStmtVisitor()
529 StateMap = NewStateMap; in reset()
549 ConsumedState CS = PInfo.getAsState(StateMap); in copyInfo()
553 setStateForVarOrTmp(StateMap, PInfo, NS); in copyInfo()
562 return PInfo.getAsState(StateMap); in getInfo()
573 setStateForVarOrTmp(StateMap, PInfo, NS); in setInfo()
589 ConsumedState VarState = StateMap->getState(PInfo.getVar()); in checkCallability()
598 ConsumedState TmpState = PInfo.getAsState(StateMap); in checkCallability()
634 ConsumedState ParamState = PInfo.getAsState(StateMap); in handleCall()
648 setStateForVarOrTmp(StateMap, PInfo, mapReturnTypestateAttrState(RT)); in handleCall()
650 setStateForVarOrTmp(StateMap, PInfo, consumed::CS_Consumed); in handleCall()
654 setStateForVarOrTmp(StateMap, PInfo, consumed::CS_Unknown); in handleCall()
668 StateMap->setState(PInfo.getVar(), mapSetTypestateAttrState(STA)); in handleCall()
672 StateMap->setState(PInfo.getTmp(), mapSetTypestateAttrState(STA)); in handleCall()
766 StateMap->setState(Temp, Entry->second.getAsState(StateMap)); in VisitCXXBindTemporaryExpr()
834 if (StateMap->getState(Var) != consumed::CS_None) in VisitDeclRefExpr()
873 StateMap->setState(Param, ParamState); in VisitParmVarDecl()
883 ConsumedState RetState = Entry->second.getAsState(StateMap); in VisitReturnStmt()
892 StateMap->checkParamsForReturnTypestate(Ret->getBeginLoc(), in VisitReturnStmt()
922 ConsumedState St = PInfo.getAsState(StateMap); in VisitVarDecl()
925 StateMap->setState(Var, St); in VisitVarDecl()
931 StateMap->setState(Var, consumed::CS_Unknown); in VisitVarDecl()
1018 const CFGBlock *Block, ConsumedStateMap *StateMap, in addInfo() argument
1025 Entry->intersect(*StateMap); in addInfo()
1029 Entry = std::make_unique<ConsumedStateMap>(*StateMap); in addInfo()
1033 std::unique_ptr<ConsumedStateMap> StateMap) { in addInfo() argument
1039 Entry->intersect(*StateMap); in addInfo()
1041 Entry = std::move(StateMap); in addInfo()