/drivers/hdf_core/framework/tools/hdi-gen/ast/ |
D | ast_union_type.cpp | 50 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() 159 … EmitCType().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() 184 … EmitCType().c_str(), name.c_str(), EmitCType().c_str(), parcelName.c_str(), EmitCType().c_str()); in EmitCStubReadVar() [all …]
|
D | ast_enum_type.cpp | 63 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()
|
D | ast_parameter.cpp | 60 … 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()
|
D | ast_pointer_type.h | 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
|
D | ast_pointer_type.cpp | 28 std::string ASTPointerType::EmitCType(TypeMode mode) const in EmitCType() function in OHOS::HDI::ASTPointerType
|
D | ast_array_type.cpp | 41 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 …]
|
D | ast_sequenceable_type.h | 30 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
|
D | ast_map_type.h | 49 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
|
D | ast_uchar_type.h | 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
|
D | ast_uint_type.h | 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
|
D | ast_ulong_type.h | 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
|
D | ast_ushort_type.h | 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
|
D | ast_native_buffer_type.h | 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
|
D | ast_boolean_type.h | 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
|
D | ast_float_type.h | 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
|
D | ast_byte_type.h | 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
|
D | ast_double_type.h | 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
|
D | ast_integer_type.h | 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
|
D | ast_short_type.h | 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
|
D | ast_long_type.h | 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
|
D | ast_string_type.cpp | 28 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()
|
D | ast_struct_type.h | 81 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
|
D | ast_fd_type.h | 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
|
/drivers/hdf_core/framework/tools/hdi-gen/codegen/ |
D | c_custom_types_code_emitter.cpp | 193 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 …]
|
D | c_service_stub_code_emitter.cpp | 364 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()
|