Lines Matching refs:Call
61 const CallEvent &Call,
67 bool guaranteedNotToCloseFile(const CallEvent &Call) const;
73 void checkPostCall(const CallEvent &Call, CheckerContext &C) const;
75 void checkPreCall(const CallEvent &Call, CheckerContext &C) const;
82 const CallEvent *Call,
104 void SimpleStreamChecker::checkPostCall(const CallEvent &Call, in checkPostCall() argument
106 if (!Call.isGlobalCFunction()) in checkPostCall()
109 if (!OpenFn.matches(Call)) in checkPostCall()
113 SymbolRef FileDesc = Call.getReturnValue().getAsSymbol(); in checkPostCall()
123 void SimpleStreamChecker::checkPreCall(const CallEvent &Call, in checkPreCall() argument
125 if (!Call.isGlobalCFunction()) in checkPreCall()
128 if (!CloseFn.matches(Call)) in checkPreCall()
132 SymbolRef FileDesc = Call.getArgSVal(0).getAsSymbol(); in checkPreCall()
140 reportDoubleClose(FileDesc, Call, C); in checkPreCall()
187 const CallEvent &Call, in reportDoubleClose() argument
198 R->addRange(Call.getSourceRange()); in reportDoubleClose()
217 bool SimpleStreamChecker::guaranteedNotToCloseFile(const CallEvent &Call) const{ in guaranteedNotToCloseFile()
219 if (!Call.isInSystemHeader()) in guaranteedNotToCloseFile()
223 if (Call.argumentsMayEscape()) in guaranteedNotToCloseFile()
237 const CallEvent *Call, in checkPointerEscape() argument
240 if (Kind == PSK_DirectEscapeOnCall && guaranteedNotToCloseFile(*Call)) { in checkPointerEscape()