Lines Matching refs:Call
64 const CallEvent &Call,
70 bool guaranteedNotToCloseFile(const CallEvent &Call) const;
74 void checkPostCall(const CallEvent &Call, CheckerContext &C) const;
76 void checkPreCall(const CallEvent &Call, CheckerContext &C) const;
83 const CallEvent *Call,
93 void SimpleStreamChecker::checkPostCall(const CallEvent &Call, in REGISTER_MAP_WITH_PROGRAMSTATE()
95 if (!OpenFn.matches(Call)) in REGISTER_MAP_WITH_PROGRAMSTATE()
99 SymbolRef FileDesc = Call.getReturnValue().getAsSymbol(); in REGISTER_MAP_WITH_PROGRAMSTATE()
109 void SimpleStreamChecker::checkPreCall(const CallEvent &Call, in checkPreCall() argument
111 if (!CloseFn.matches(Call)) in checkPreCall()
115 SymbolRef FileDesc = Call.getArgSVal(0).getAsSymbol(); in checkPreCall()
123 reportDoubleClose(FileDesc, Call, C); in checkPreCall()
168 const CallEvent &Call, in reportDoubleClose() argument
179 R->addRange(Call.getSourceRange()); in reportDoubleClose()
198 bool SimpleStreamChecker::guaranteedNotToCloseFile(const CallEvent &Call) const{ in guaranteedNotToCloseFile()
200 if (!Call.isInSystemHeader()) in guaranteedNotToCloseFile()
204 if (Call.argumentsMayEscape()) in guaranteedNotToCloseFile()
218 const CallEvent *Call, in checkPointerEscape() argument
221 if (Kind == PSK_DirectEscapeOnCall && guaranteedNotToCloseFile(*Call)) { in checkPointerEscape()