Lines Matching defs:shouldBeCalledOnce
650 if (shouldBeCalledOnce(ParamContext, P)) {
660 if (shouldBeCalledOnce(Function, Index)) {
889 if (shouldBeCalledOnce(CallOrMessage, Argument.index())) {
1037 bool shouldBeCalledOnce(const ParmVarDecl *Parameter) const {
1045 bool shouldBeCalledOnce(const DeclContext *ParamContext,
1049 return shouldBeCalledOnce(Function, ParamIndex);
1052 return shouldBeCalledOnce(Method, ParamIndex);
1054 return shouldBeCalledOnce(Param);
1057 bool shouldBeCalledOnce(const BlockDecl *Block, unsigned ParamIndex) const {
1058 return shouldBeCalledOnce(Block->getParamDecl(ParamIndex));
1061 bool shouldBeCalledOnce(const FunctionDecl *Function,
1072 return shouldBeCalledOnce(Function->getParamDecl(ParamIndex)) ||
1077 bool shouldBeCalledOnce(const ObjCMethodDecl *Method,
1090 return shouldBeCalledOnce(Parameter) ||
1096 bool shouldBeCalledOnce(const CallExpr *Call, unsigned ParamIndex) const {
1098 return Function && shouldBeCalledOnce(Function, ParamIndex);
1101 bool shouldBeCalledOnce(const ObjCMessageExpr *Message,
1105 shouldBeCalledOnce(Method, ParamIndex);
1177 shouldBeCalledOnce(Call, ParamIndex);
1184 return shouldBeCalledOnce(Message, ParamIndex);