Lines Matching refs:fd
102 const std::string &name, FunctionDecl *fd, int depth) in copy_method() argument
104 clazz.methods[name].insert(fd); in copy_method()
105 clazz.copied_from.emplace(fd, super); in copy_method()
106 clazz.copy_depth.emplace(fd, depth); in copy_method()
137 static int copy_depth(const isl_class &clazz, FunctionDecl *fd) in copy_depth() argument
139 if (clazz.copy_depth.count(fd) == 0) in copy_depth()
141 return clazz.copy_depth.at(fd); in copy_depth()
159 static bool is_overridden(FunctionDecl *fd, isl_class &clazz, in is_overridden() argument
166 if (!same_signature(fd, m)) in is_overridden()
184 for (auto fd : methods) { in copy_methods() local
187 if (method2class(fd)->is_static(fd)) in copy_methods()
189 depth = copy_depth(super, fd) + 1; in copy_methods()
190 if (is_overridden(fd, clazz, name, depth)) in copy_methods()
192 copy_method(clazz, super, name, fd, depth); in copy_methods()
297 void cpp_generator::class_printer::print_set_enums(FunctionDecl *fd) in print_set_enums() argument
299 for (const auto &set : clazz.set_enums.at(fd)) { in print_set_enums()
300 EnumMethod method(clazz, fd, set.method_name, set.name); in print_set_enums()
331 bool cpp_generator::class_printer::next_variant(FunctionDecl *fd, in next_variant() argument
337 ParmVarDecl *param = fd->getParamDecl(i); in next_variant()
375 void cpp_generator::class_printer::print_method_variants(FunctionDecl *fd, in print_method_variants() argument
378 Method method(clazz, fd, name); in print_method_variants()
381 if (method.clazz.copied_from.count(method.fd) == 0) { in print_method_variants()
383 if (clazz.is_get_method(fd)) in print_method_variants()
384 print_get_method(fd); in print_method_variants()
386 auto super = method.clazz.copied_from.at(method.fd); in print_method_variants()
391 while (next_variant(fd, convert)) { in print_method_variants()
393 return get_param(fd, pos, convert); in print_method_variants()
403 static bool has_single_isl_argument(FunctionDecl *fd) in has_single_isl_argument() argument
407 if (fd->getNumParams() != 2) in has_single_isl_argument()
410 param = fd->getParamDecl(1); in has_single_isl_argument()
442 FunctionDecl *fd, const std::string &name) in print_descendent_overloads() argument
444 Method method(clazz, fd, name); in print_descendent_overloads()
445 ParmVarDecl *param = fd->getParamDecl(1); in print_descendent_overloads()
471 for (const auto &fd : methods) in print_method_group() local
472 print_method_variants(fd, name); in print_method_group()
506 ParmVarDecl *param = fd->getParamDecl(pos); in print_param_use()
545 return clazz.is_type_subclass() && generator::is_mutator(clazz, fd); in is_subclass_mutator()
559 return param(-1, method.fd->getReturnType()); in return_type()
567 ParmVarDecl *cpp_generator::class_printer::get_param(FunctionDecl *fd, in get_param() argument
570 ParmVarDecl *param = fd->getParamDecl(pos); in get_param()
653 std::string name = method.fd->getParamDecl(i)->getName().str(); in print_method_header()
918 ParmVarDecl *param = cons.fd->getParamDecl(0); in is_implicit_conversion()
921 int num_params = cons.fd->getNumParams(); in is_implicit_conversion()
948 static ParmVarDecl *find_callback_arg(FunctionDecl *fd) in find_callback_arg() argument
950 int num_params = fd->getNumParams(); in find_callback_arg()
953 ParmVarDecl *param = fd->getParamDecl(i); in find_callback_arg()
967 Method::Method(const isl_class &clazz, FunctionDecl *fd, in Method() argument
969 clazz(clazz), fd(fd), name(rename_method(name)), in Method()
970 kind(get_kind(clazz, fd)), in Method()
971 callback(find_callback_arg(fd)) in Method()
981 Method::Method(const isl_class &clazz, FunctionDecl *fd) : in Method() argument
982 Method(clazz, fd, clazz.method_name(fd)) in Method()
1000 return fd->getNumParams() - (callback != NULL); in c_num_params()
1068 return fd->getParamDecl(pos); in get_param()
1161 EnumMethod::EnumMethod(const isl_class &clazz, FunctionDecl *fd, in EnumMethod() argument
1163 Method(clazz, fd, method_name), enum_name(enum_name) in EnumMethod()