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 (!Call.isGlobalCFunction()) in REGISTER_MAP_WITH_PROGRAMSTATE()
98 if (!OpenFn.matches(Call)) in REGISTER_MAP_WITH_PROGRAMSTATE()
102 SymbolRef FileDesc = Call.getReturnValue().getAsSymbol(); in REGISTER_MAP_WITH_PROGRAMSTATE()
112 void SimpleStreamChecker::checkPreCall(const CallEvent &Call, in checkPreCall() argument
114 if (!Call.isGlobalCFunction()) in checkPreCall()
117 if (!CloseFn.matches(Call)) in checkPreCall()
121 SymbolRef FileDesc = Call.getArgSVal(0).getAsSymbol(); in checkPreCall()
129 reportDoubleClose(FileDesc, Call, C); in checkPreCall()
174 const CallEvent &Call, in reportDoubleClose() argument
185 R->addRange(Call.getSourceRange()); in reportDoubleClose()
204 bool SimpleStreamChecker::guaranteedNotToCloseFile(const CallEvent &Call) const{ in guaranteedNotToCloseFile()
206 if (!Call.isInSystemHeader()) in guaranteedNotToCloseFile()
210 if (Call.argumentsMayEscape()) in guaranteedNotToCloseFile()
224 const CallEvent *Call, in checkPointerEscape() argument
227 if (Kind == PSK_DirectEscapeOnCall && guaranteedNotToCloseFile(*Call)) { in checkPointerEscape()