Home
last modified time | relevance | path

Searched refs:EmitCType (Results 1 – 25 of 50) sorted by relevance

12

/drivers/hdf_core/framework/tools/hdi-gen/ast/
Dast_union_type.cpp50 std::string ASTUnionType::EmitCType(TypeMode mode) const in EmitCType() function in OHOS::HDI::ASTUnionType
96 sb.Append(TAB).AppendFormat("%s %s;\n", member->EmitCType().c_str(), memberName.c_str()); in EmitCTypeDecl()
133 parcelName.c_str(), name.c_str(), EmitCType().c_str()); in EmitCWriteVar()
136 parcelName.c_str(), name.c_str(), EmitCType().c_str()); in EmitCWriteVar()
148 sb.Append(prefix).AppendFormat("%s *%s = NULL;\n", EmitCType().c_str(), name.c_str()); in EmitCProxyReadVar()
156 …refix).AppendFormat("if (%s == NULL || sizeof(%s) != len) {\n", name.c_str(), EmitCType().c_str()); in EmitCProxyReadVar()
159EmitCType().c_str(), name.c_str(), EmitCType().c_str(), parcelName.c_str(), EmitCType().c_str()); in EmitCProxyReadVar()
173 sb.Append(prefix).AppendFormat("%s *%s = NULL;\n", EmitCType().c_str(), name.c_str()); in EmitCStubReadVar()
181 …refix).AppendFormat("if (%s == NULL || sizeof(%s) != len) {\n", name.c_str(), EmitCType().c_str()); in EmitCStubReadVar()
184EmitCType().c_str(), name.c_str(), EmitCType().c_str(), parcelName.c_str(), EmitCType().c_str()); in EmitCStubReadVar()
[all …]
Dast_enum_type.cpp63 std::string ASTEnumType::EmitCType(TypeMode mode) const in EmitCType() function in OHOS::HDI::ASTEnumType
174 …sb.Append(prefix + TAB).AppendFormat("*%s = (%s)%s;\n", name.c_str(), EmitCType().c_str(), tmpVarN… in EmitCProxyReadVar()
190 …sb.Append(prefix + TAB).AppendFormat("%s = (%s)%s;\n", name.c_str(), EmitCType().c_str(), tmpVarNa… in EmitCStubReadVar()
210 EmitCType().c_str()); in EmitCppReadVar()
219 …sb.Append(prefix + TAB).AppendFormat("%s = static_cast<%s>(%s);\n", name.c_str(), EmitCType().c_st… in EmitCppReadVar()
242 …sb.Append(prefix + TAB).AppendFormat("%s = (%s)%s;\n", name.c_str(), EmitCType().c_str(), tmpVarNa… in EmitCUnMarshalling()
262 EmitCType().c_str()); in EmitCppUnMarshalling()
271 …sb.Append(prefix + TAB).AppendFormat("%s = static_cast<%s>(%s);\n", name.c_str(), EmitCType().c_st… in EmitCppUnMarshalling()
Dast_parameter.cpp60 … paramStr.AppendFormat("%s %s", type_->EmitCType(TypeMode::PARAM_IN).c_str(), name_.c_str()); in EmitCParameter()
62 … paramStr.AppendFormat("%s %s", type_->EmitCType(TypeMode::PARAM_OUT).c_str(), name_.c_str()); in EmitCParameter()
73 … paramStr.AppendFormat("%s %s", type_->EmitCType(TypeMode::PARAM_IN).c_str(), name_.c_str()); in EmitCParameter()
75 … paramStr.AppendFormat("%s %s", type_->EmitCType(TypeMode::PARAM_OUT).c_str(), name_.c_str()); in EmitCParameter()
134 sb.AppendFormat("%s %s", type_->EmitCType(TypeMode::LOCAL_VAR).c_str(), name_.c_str()); in EmitCLocalVar()
Dast_pointer_type.h26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
Dast_pointer_type.cpp28 std::string ASTPointerType::EmitCType(TypeMode mode) const in EmitCType() function in OHOS::HDI::ASTPointerType
Dast_array_type.cpp41 std::string ASTArrayType::EmitCType(TypeMode mode) const in EmitCType() function in OHOS::HDI::ASTArrayType
45 return StringHelper::Format("%s*", elementType_->EmitCType(TypeMode::NO_MODE).c_str()); in EmitCType()
48 … return StringHelper::Format("%s*", elementType_->EmitCType(TypeMode::NO_MODE).c_str()); in EmitCType()
50 … return StringHelper::Format("const %s*", elementType_->EmitCType(TypeMode::NO_MODE).c_str()); in EmitCType()
53 return StringHelper::Format("%s*", elementType_->EmitCType(TypeMode::NO_MODE).c_str()); in EmitCType()
55 return StringHelper::Format("%s*", elementType_->EmitCType(TypeMode::NO_MODE).c_str()); in EmitCType()
88 name.c_str(), elementType_->EmitCType().c_str(), lenName.c_str()); in EmitCWriteVar()
159 name.c_str(), elementType_->EmitCType().c_str(), lenName.c_str()); in EmitCProxyReadVar()
182 …CHECK_VALUE_RET_GOTO_MACRO, lenName.c_str(), MAX_BUFF_SIZE_MACRO, elementType_->EmitCType().c_str(… in EmitCProxyReadVar()
210 name.c_str(), elementType_->EmitCType().c_str(), lenName.c_str()); in EmitCStubReadVar()
[all …]
Dast_sequenceable_type.h30 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
Dast_map_type.h49 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
Dast_uchar_type.h26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
Dast_uint_type.h26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
Dast_ulong_type.h26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
Dast_ushort_type.h26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
Dast_native_buffer_type.h26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
Dast_boolean_type.h26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
Dast_float_type.h26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
Dast_byte_type.h26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
Dast_double_type.h26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
Dast_integer_type.h26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
Dast_short_type.h26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
Dast_long_type.h26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
Dast_string_type.cpp28 std::string ASTStringType::EmitCType(TypeMode mode) const in EmitCType() function in OHOS::HDI::ASTStringType
131 ….AppendFormat("%s = (%s)OsalMemCalloc(%s);\n", name.c_str(), EmitCType().c_str(), lenName.c_str()); in EmitCStubReadOutVar()
141 ….AppendFormat("%s = (%s)OsalMemCalloc(%s);\n", name.c_str(), EmitCType().c_str(), buffSizeName.c_s… in EmitCStubReadOutVar()
Dast_struct_type.h81 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
Dast_fd_type.h26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
/drivers/hdf_core/framework/tools/hdi-gen/codegen/
Dc_custom_types_code_emitter.cpp193 type->EmitCType().c_str(), objName.c_str()); in EmitCustomTypeMarshallingDecl()
201 type->EmitCType().c_str(), objName.c_str()); in EmitCustomTypeUnmarshallingDecl()
208 …"void %sFree(%s *%s, bool freeSelf);\n", type->GetName().c_str(), type->EmitCType().c_str(), objNa… in EmitCustomTypeFreeDecl()
276 type->EmitCType().c_str(), objName.c_str()); in EmitCustomTypeMarshallingImpl()
284 objName.c_str(), type->EmitCType().c_str()); in EmitCustomTypeMarshallingImpl()
287 objName.c_str(), type->EmitCType().c_str()); in EmitCustomTypeMarshallingImpl()
311 type->EmitCType().c_str(), objName.c_str()); in EmitCustomTypeUnmarshallingImpl()
355 … sb.Append(prefix).AppendFormat("%s *%sPtr = NULL;\n", type->EmitCType().c_str(), name.c_str()); in EmitUnmarshallingVarDecl()
393 …== NULL || %s != sizeof(%s)) {\n", objPtrName.c_str(), lenName.c_str(), type->EmitCType().c_str()); in EmitPodTypeUnmarshalling()
399 …type->EmitCType().c_str(), objPtrName.c_str(), type->EmitCType().c_str(), type->EmitCType().c_str(… in EmitPodTypeUnmarshalling()
[all …]
Dc_service_stub_code_emitter.cpp364 type->EmitCType(TypeMode::NO_MODE).c_str(), type->EmitCType(TypeMode::NO_MODE).c_str()); in EmitReadStubMethodParameter()
376 type->EmitCType(TypeMode::NO_MODE).c_str(), type->EmitCType(TypeMode::NO_MODE).c_str()); in EmitReadStubMethodParameter()
384 param->GetName().c_str(), type->EmitCType(TypeMode::NO_MODE).c_str(), cpName.c_str(), in EmitReadStubMethodParameter()
385 type->EmitCType(TypeMode::NO_MODE).c_str()); in EmitReadStubMethodParameter()
435 type->EmitCType(TypeMode::NO_MODE).c_str(), type->EmitCType(TypeMode::NO_MODE).c_str()); in EmitOutVarMemInitialize()

12