Lines Matching refs:ConsumedState

103 static ConsumedState invertConsumedUnconsumed(ConsumedState State) {  in invertConsumedUnconsumed()
118 ConsumedState State) { in isCallableInState()
120 ConsumedState MappedAttrState = CS_None; in isCallableInState()
169 static bool isKnownState(ConsumedState State) { in isKnownState()
193 static ConsumedState mapConsumableAttrState(const QualType QT) { in mapConsumableAttrState()
210 static ConsumedState
223 static ConsumedState
236 static ConsumedState mapSetTypestateAttrState(const SetTypestateAttr *STAttr) { in mapSetTypestateAttrState()
248 static StringRef stateToString(ConsumedState State) { in stateToString()
265 static ConsumedState testsFor(const FunctionDecl *FunDecl) { in testsFor()
280 ConsumedState TestsFor;
311 ConsumedState State;
323 PropagationInfo(const VarDecl *Var, ConsumedState TestsFor) in PropagationInfo()
339 const VarDecl *LVar, ConsumedState LTestsFor, in PropagationInfo()
340 const VarDecl *RVar, ConsumedState RTestsFor) in PropagationInfo()
350 PropagationInfo(ConsumedState State) in PropagationInfo()
356 const ConsumedState &getState() const { in getState()
386 ConsumedState getAsState(const ConsumedStateMap *StateMap) const { in getAsState()
447 ConsumedState State) { in setStateForVarOrTmp()
488 void copyInfo(const Expr *From, const Expr *To, ConsumedState CS);
489 ConsumedState getInfo(const Expr *From);
490 void setInfo(const Expr *To, ConsumedState NS);
545 ConsumedState NS) { in copyInfo()
549 ConsumedState CS = PInfo.getAsState(StateMap); in copyInfo()
558 ConsumedState ConsumedStmtVisitor::getInfo(const Expr *From) { in getInfo()
568 void ConsumedStmtVisitor::setInfo(const Expr *To, ConsumedState 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()
635 ConsumedState ExpectedState = mapParamTypestateAttrState(PTA); in handleCall()
691 ConsumedState ReturnState; in propagateReturnType()
782 ConsumedState RetState = mapReturnTypestateAttrState(RTA); in VisitCXXConstructExpr()
791 ConsumedState NS = in VisitCXXConstructExpr()
797 ConsumedState RetState = mapConsumableAttrState(ThisType); in VisitCXXConstructExpr()
818 ConsumedState CS = getInfo(Call->getArg(1)); in VisitCXXOperatorCallExpr()
859 ConsumedState ParamState = consumed::CS_None; in VisitParmVarDecl()
877 ConsumedState ExpectedState = Analyzer.getExpectedReturnState(); in VisitReturnStmt()
883 ConsumedState RetState = Entry->second.getAsState(StateMap); in VisitReturnStmt()
922 ConsumedState St = PInfo.getAsState(StateMap); in VisitVarDecl()
938 ConsumedState VarState = ThenStates->getState(Test.Var); in splitVarStateForIf()
956 ConsumedState LState = LTest.Var ? ThenStates->getState(LTest.Var) : CS_None, in splitVarStateForIfBinOp()
1100 ConsumedState ExpectedState = mapReturnTypestateAttrState(RTA); in checkParamsForReturnTypestate()
1113 ConsumedState ConsumedStateMap::getState(const VarDecl *Var) const { in getState()
1122 ConsumedState
1133 ConsumedState LocalState; in intersect()
1155 ConsumedState LocalState; in intersectAtLoopHead()
1178 void ConsumedStateMap::setState(const VarDecl *Var, ConsumedState State) { in setState()
1183 ConsumedState State) { in setState()
1272 ConsumedState VarState = CurrStates->getState(Test.Var); in splitState()