Lines Matching refs:Call
63 const CallEvent &Call,
69 bool guaranteedNotToCloseFile(const CallEvent &Call) const;
75 void checkPostCall(const CallEvent &Call, CheckerContext &C) const;
77 void checkPreCall(const CallEvent &Call, CheckerContext &C) const;
84 const CallEvent *Call,
120 void SimpleStreamChecker::checkPostCall(const CallEvent &Call, in checkPostCall() argument
124 if (!Call.isGlobalCFunction()) in checkPostCall()
127 if (Call.getCalleeIdentifier() != IIfopen) in checkPostCall()
131 SymbolRef FileDesc = Call.getReturnValue().getAsSymbol(); in checkPostCall()
141 void SimpleStreamChecker::checkPreCall(const CallEvent &Call, in checkPreCall() argument
145 if (!Call.isGlobalCFunction()) in checkPreCall()
148 if (Call.getCalleeIdentifier() != IIfclose) in checkPreCall()
151 if (Call.getNumArgs() != 1) in checkPreCall()
155 SymbolRef FileDesc = Call.getArgSVal(0).getAsSymbol(); in checkPreCall()
163 reportDoubleClose(FileDesc, Call, C); in checkPreCall()
208 const CallEvent &Call, in reportDoubleClose() argument
219 R->addRange(Call.getSourceRange()); in reportDoubleClose()
237 bool SimpleStreamChecker::guaranteedNotToCloseFile(const CallEvent &Call) const{ in guaranteedNotToCloseFile()
239 if (!Call.isInSystemHeader()) in guaranteedNotToCloseFile()
243 if (Call.argumentsMayEscape()) in guaranteedNotToCloseFile()
257 const CallEvent *Call, in checkPointerEscape() argument
260 if (Kind == PSK_DirectEscapeOnCall && guaranteedNotToCloseFile(*Call)) { in checkPointerEscape()