Home
last modified time | relevance | path

Searched refs:ExpectedState (Results 1 – 4 of 4) sorted by relevance

/external/clang/include/clang/Analysis/Analyses/
DConsumed.h73 StringRef ExpectedState, in warnParamReturnTypestateMismatch() argument
78 StringRef ExpectedState, in warnParamTypestateMismatch() argument
101 StringRef ExpectedState, in warnReturnTypestateMismatch() argument
/external/clang/unittests/Lex/
DPPCallbacksTest.cpp334 unsigned ExpectedState = 1; in TEST_F() local
335 ASSERT_EQ(ExpectedState, Parameters.State); in TEST_F()
346 unsigned ExpectedState = 0; in TEST_F() local
347 ASSERT_EQ(ExpectedState, Parameters.State); in TEST_F()
/external/clang/lib/Analysis/
DConsumed.cpp632 ConsumedState ExpectedState = mapParamTypestateAttrState(PTA); in handleCall() local
634 if (ParamState != ExpectedState) in handleCall()
637 stateToString(ExpectedState), stateToString(ParamState)); in handleCall()
887 ConsumedState ExpectedState = Analyzer.getExpectedReturnState(); in VisitReturnStmt() local
889 if (ExpectedState != CS_None) { in VisitReturnStmt()
895 if (RetState != ExpectedState) in VisitReturnStmt()
897 Ret->getReturnLoc(), stateToString(ExpectedState), in VisitReturnStmt()
1137 ConsumedState ExpectedState = mapReturnTypestateAttrState(RTA); in checkParamsForReturnTypestate() local
1138 if (DM.second != ExpectedState) in checkParamsForReturnTypestate()
1140 Param->getNameAsString(), stateToString(ExpectedState), in checkParamsForReturnTypestate()
/external/clang/lib/Sema/
DAnalysisBasedWarnings.cpp1741 StringRef ExpectedState, in warnParamReturnTypestateMismatch() argument
1746 ExpectedState << ObservedState); in warnParamReturnTypestateMismatch()
1751 void warnParamTypestateMismatch(SourceLocation Loc, StringRef ExpectedState, in warnParamTypestateMismatch() argument
1755 diag::warn_param_typestate_mismatch) << ExpectedState << ObservedState); in warnParamTypestateMismatch()
1768 void warnReturnTypestateMismatch(SourceLocation Loc, StringRef ExpectedState, in warnReturnTypestateMismatch() argument
1772 diag::warn_return_typestate_mismatch) << ExpectedState << ObservedState); in warnReturnTypestateMismatch()