/drivers/hdf_core/framework/tools/hdi-gen/util/ |
D | options.cpp | 27 const char *Options::optSupportArgs = "hvs:m:l:p:c:d:r:o:D:"; 40 Options &Options::GetInstance() in GetInstance() 42 static Options option; in GetInstance() 46 bool Options::Parse(int argc, char *argv[]) in Parse() 99 bool Options::SetSystemLevel(const std::string &system) in SetSystemLevel() 116 bool Options::SetGenerateMode(const std::string &mode) in SetGenerateMode() 134 bool Options::SetLanguage(const std::string &language) in SetLanguage() 153 void Options::SetPackage(const std::string &infPackage) in SetPackage() 158 void Options::AddSources(const std::string &sourceFile) in AddSources() 173 void Options::AddSourcesByDir(const std::string &dir) in AddSourcesByDir() [all …]
|
D | options.h | 21 class Options { 25 static Options &GetInstance(); 27 Options(const Options &other) = delete; 28 Options operator=(const Options &other) = delete; 32 ~Options() = default; 129 Options() in Options() function
|
/drivers/hdf_core/framework/tools/hdi-gen/ |
D | main.cpp | 21 Options &options = Options::GetInstance(); in main()
|
/drivers/hdf_core/framework/tools/hdi-gen/codegen/ |
D | code_generator.cpp | 117 std::string outDir = Options::GetInstance().GetGenerationDirectory(); in Generate() 118 std::set<std::string> sourceFile = Options::GetInstance().GetSourceFiles(); in Generate() 119 Language language = Options::GetInstance().GetLanguage(); in Generate() 137 auto systemPolicies = policies_.find(Options::GetInstance().GetSystemLevel()); in GetCodeGenPoilcy() 144 auto genModeIter = genModePolicies.find(Options::GetInstance().GetGenMode()); in GetCodeGenPoilcy() 151 auto languageIter = languagePolicies.find(Options::GetInstance().GetLanguage()); in GetCodeGenPoilcy()
|
D | c_interface_code_emitter.cpp | 108 if (!Options::GetInstance().DoPassthrough()) { in EmitInterfaceHeaderFile() 116 if (!Options::GetInstance().DoPassthrough()) { in EmitInterfaceHeaderFile() 151 if (!Options::GetInstance().DoGenerateKernelCode()) { in GetHeaderOtherLibInclusions() 185 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitInterfaceMethods() 228 if (Options::GetInstance().DoPassthrough() && interface_->IsSerializable()) { in EmitExternalMethod()
|
D | cpp_client_proxy_code_emitter.cpp | 123 …for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) { in EmitProxyMethodDecls() 130 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitProxyMethodDecls() 229 if (Options::GetInstance().GetSystemLevel() == SystemLevel::LITE) { in EmitPassthroughProxySourceInclusions() 321 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in GetSourceOtherLibInclusions() 402 if (Options::GetInstance().GetSystemLevel() == SystemLevel::LITE) { in EmitProxyPassthroughtLoadImpl() 417 if (Options::GetInstance().GetSystemLevel() == SystemLevel::LITE) { in EmitProxyPassthroughtLoadImpl() 433 …for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) { in EmitProxyMethodImpls() 444 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitProxyMethodImpls() 593 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in GetUtilMethods() 598 … paramType->RegisterWriteMethod(Options::GetInstance().GetLanguage(), SerMode::PROXY_SER, methods); in GetUtilMethods() [all …]
|
D | cpp_service_stub_code_emitter.cpp | 128 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitStubMethodDecls() 140 …for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) { in EmitStubMethodDecls() 237 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in GetSourceOtherLibInclusions() 333 …for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) { in EmitStubOnRequestMethodImpl() 355 …for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) { in EmitStubMethodImpls() 366 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitStubMethodImpls() 517 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in GetUtilMethods() 522 … paramType->RegisterReadMethod(Options::GetInstance().GetLanguage(), SerMode::STUB_SER, methods); in GetUtilMethods() 524 … paramType->RegisterWriteMethod(Options::GetInstance().GetLanguage(), SerMode::STUB_SER, methods); in GetUtilMethods()
|
D | code_emitter.cpp | 118 std::string subPackage = Options::GetInstance().GetSubPackage(ast_->GetPackageName()); in GetFileParentPath() 129 …std::vector<std::string> packageVec = StringHelper::Split(Options::GetInstance().GetSubPackage(pac… in PackageToFilePath() 151 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitInterfaceMethodCommands()
|
D | cpp_interface_code_emitter.cpp | 55 if (!Options::GetInstance().DoPassthrough()) { in EmitInterfaceHeaderFile() 62 if (!Options::GetInstance().DoPassthrough()) { in EmitInterfaceHeaderFile() 167 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitInterfaceMethodsDecl()
|
D | java_code_emitter.cpp | 28 auto methods = interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()); in EmitInterfaceMethodCommands()
|
D | c_custom_types_code_emitter.cpp | 282 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCustomTypeMarshallingImpl() 335 if (!Options::GetInstance().DoGenerateKernelCode()) { in EmitMarshallingVarDecl() 350 if (!Options::GetInstance().DoGenerateKernelCode()) { in EmitUnmarshallingVarDecl() 385 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitPodTypeUnmarshalling() 457 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitStringMemberUnmarshalling() 559 …typePair.second->RegisterWriteMethod(Options::GetInstance().GetLanguage(), SerMode::CUSTOM_SER, me… in GetUtilMethods() 560 …typePair.second->RegisterReadMethod(Options::GetInstance().GetLanguage(), SerMode::CUSTOM_SER, met… in GetUtilMethods()
|
D | cpp_service_impl_code_emitter.cpp | 106 …for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) { in EmitServiceImplMethodDecls() 180 …for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) { in EmitServiceImplMethodImpls()
|
D | c_service_impl_code_emitter.cpp | 137 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitLowServiceImplGetMethod() 287 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitServiceImplMethodImpls() 364 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitKernelServiceImplGetMethod() 390 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitServiceImplGetMethod()
|
D | java_client_interface_code_emitter.cpp | 118 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitInterfaceMethods()
|
D | c_service_stub_code_emitter.cpp | 267 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitServiceStubMethodImpls() 566 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitKernelStubOnRequestMethodImpl() 628 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitStubOnRequestMethodImpl() 734 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in GetUtilMethods() 739 … paramType->RegisterReadMethod(Options::GetInstance().GetLanguage(), SerMode::STUB_SER, methods); in GetUtilMethods() 741 … paramType->RegisterWriteMethod(Options::GetInstance().GetLanguage(), SerMode::STUB_SER, methods); in GetUtilMethods()
|
D | c_client_proxy_code_emitter.cpp | 177 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in GetHeaderOtherLibInclusions() 255 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitProxyMethodImpls() 474 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitProxyConstruction() 801 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in GetUtilMethods() 806 paramType->RegisterWriteMethod(Options::GetInstance().GetLanguage(), in GetUtilMethods() 809 … paramType->RegisterReadMethod(Options::GetInstance().GetLanguage(), SerMode::PROXY_SER, methods); in GetUtilMethods()
|
D | cpp_custom_types_code_emitter.cpp | 380 …typePair.second->RegisterWriteMethod(Options::GetInstance().GetLanguage(), SerMode::CUSTOM_SER, me… in GetUtilMethods() 381 …typePair.second->RegisterReadMethod(Options::GetInstance().GetLanguage(), SerMode::CUSTOM_SER, met… in GetUtilMethods()
|
D | cpp_service_driver_code_emitter.cpp | 200 …sb.Append(TAB).AppendFormat(".moduleName = \"%s\",\n", Options::GetInstance().GetPackage().c_str()… in EmitDriverEntryDefinition()
|
D | java_client_proxy_code_emitter.cpp | 149 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitProxyMethodImpls()
|
D | cpp_code_emitter.cpp | 121 std::string rootPackage = Options::GetInstance().GetRootPackage(namespaceStr); in EmitCppNameSpaceVec()
|
/drivers/hdf_core/framework/tools/hdi-gen/preprocessor/ |
D | preprocessor.cpp | 42 std::set<std::string> sourceFiles = Options::GetInstance().GetSourceFiles(); in Preprocess() 65 std::set<std::string> sourceFiles = Options::GetInstance().GetSourceFiles(); in UnitPreprocess() 197 if (!File::CheckValid(Options::GetInstance().GetImportFilePath(token.value))) { in ParseImports() 225 std::string otherFilePath = Options::GetInstance().GetImportFilePath(importName); in LoadOtherIdlFiles() 327 std::string pkgToPath = Options::GetInstance().GetPackagePath(packageName); in CheckPackageName()
|
/drivers/hdf_core/framework/tools/hdi-gen/ast/ |
D | ast_union_type.cpp | 131 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCWriteVar() 147 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCProxyReadVar() 172 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCStubReadVar() 225 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCMarshalling() 240 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCUnMarshalling()
|
D | ast_array_type.cpp | 120 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCWriteVar() 185 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCProxyReadVar() 239 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCStubReadVar() 392 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCMarshalling() 443 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCUnMarshalling() 468 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCStringElementUnMarshalling() 564 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitMemoryRecycle() 833 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCWriteMethods() 863 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCReadMethods() 882 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCReadMethods() [all …]
|
/drivers/hdf_core/framework/tools/hdi-gen/hash/ |
D | hash.cpp | 27 std::string filePath = Options::GetInstance().GetOutPutFile(); in GenHashKey()
|
/drivers/hdf_core/framework/tools/hdi-gen/parser/ |
D | parser.cpp | 467 switch (Options::GetInstance().GetSystemLevel()) { in CheckInterfaceAttr() 1516 if (Options::GetInstance().GetLanguage() == Language::C) { in CheckType() 1522 } else if (Options::GetInstance().GetLanguage() == Language::JAVA) { in CheckType() 1546 if (!Options::GetInstance().DoPassthrough() && type->IsPointerType()) { in CheckTypeByMode() 1552 if (Options::GetInstance().DoGenerateKernelCode()) { in CheckTypeByMode() 1669 std::string pkgToPath = Options::GetInstance().GetPackagePath(packageName); in CheckPackageName() 1687 std::string idlFilePath = Options::GetInstance().GetImportFilePath(importName); in CheckImport() 1805 Language language = Options::GetInstance().GetLanguage(); in PostProcess() 1840 std::set<std::string> sourceFile = Options::GetInstance().GetSourceFiles(); in GetGenVersion() 1861 std::set<std::string> sourceFile = Options::GetInstance().GetSourceFiles(); in GetGenNamespace()
|