|
|
|
@ -56,14 +56,25 @@ let rec translate_one_declaration tenv cg cfg parent_dec dec =
|
|
|
|
|
let name = Ast_utils.get_qualified_name name_info in
|
|
|
|
|
let curr_class = ObjcCategory_decl.get_curr_class_from_category_impl name ocidi in
|
|
|
|
|
ignore (ObjcCategory_decl.category_impl_decl CTypes_decl.type_ptr_to_sil_type tenv dec);
|
|
|
|
|
CMethod_declImpl.process_methods tenv cg cfg curr_class decl_list
|
|
|
|
|
CMethod_declImpl.process_methods tenv cg cfg curr_class decl_list;
|
|
|
|
|
(match Ast_utils.get_decl_opt_with_decl_ref ocidi.Clang_ast_t.ocidi_category_decl with
|
|
|
|
|
| Some ObjCCategoryDecl(_, _, cat_decl_list, _, _) ->
|
|
|
|
|
let name = CContext.get_curr_class_name curr_class in
|
|
|
|
|
let decls = cat_decl_list @ decl_list in
|
|
|
|
|
CFrontend_errors.check_for_property_errors cfg cg tenv name decl_info decls
|
|
|
|
|
| _ -> ())
|
|
|
|
|
|
|
|
|
|
| ObjCImplementationDecl(decl_info, name_info, decl_list, decl_context_info, idi) ->
|
|
|
|
|
let curr_class = ObjcInterface_decl.get_curr_class_impl idi in
|
|
|
|
|
let type_ptr_to_sil_type = CTypes_decl.type_ptr_to_sil_type in
|
|
|
|
|
ignore (ObjcInterface_decl.interface_impl_declaration type_ptr_to_sil_type tenv dec);
|
|
|
|
|
CMethod_declImpl.process_methods tenv cg cfg curr_class decl_list;
|
|
|
|
|
CFrontend_errors.check_for_property_errors cfg cg tenv curr_class decl_info
|
|
|
|
|
(match Ast_utils.get_decl_opt_with_decl_ref idi.Clang_ast_t.oidi_class_interface with
|
|
|
|
|
| Some ObjCInterfaceDecl(_, _, cl_decl_list, _, _) ->
|
|
|
|
|
let name = CContext.get_curr_class_name curr_class in
|
|
|
|
|
let decls = cl_decl_list @ decl_list in
|
|
|
|
|
CFrontend_errors.check_for_property_errors cfg cg tenv name decl_info decls
|
|
|
|
|
| _ -> ())
|
|
|
|
|
|
|
|
|
|
| CXXMethodDecl (decl_info, name_info, type_ptr, function_decl_info, _)
|
|
|
|
|
| CXXConstructorDecl (decl_info, name_info, type_ptr, function_decl_info, _) ->
|
|
|
|
|