• Home
  • Raw
  • Download

Lines Matching refs:unique_ptr

40 using std::unique_ptr;
72 unique_ptr<AstNode> BreakOnStatusNotOk() { in BreakOnStatusNotOk()
77 return unique_ptr<AstNode>(ret); in BreakOnStatusNotOk()
80 unique_ptr<AstNode> GotoErrorOnBadStatus() { in GotoErrorOnBadStatus()
85 return unique_ptr<AstNode>(ret); in GotoErrorOnBadStatus()
88 unique_ptr<AstNode> ReturnOnStatusNotOk() { in ReturnOnStatusNotOk()
92 return unique_ptr<AstNode>(ret); in ReturnOnStatusNotOk()
99 for (const unique_ptr<AidlArgument>& a : method.GetArguments()) { in BuildArgList()
143 unique_ptr<Declaration> BuildMethodDecl(const AidlMethod& method, in BuildMethodDecl()
154 return unique_ptr<Declaration>{ in BuildMethodDecl()
161 unique_ptr<Declaration> BuildMetaMethodDecl(const AidlMethod& method, const TypeNamespace&, in BuildMetaMethodDecl()
175 return unique_ptr<Declaration>(new LiteralDecl(code.str())); in BuildMetaMethodDecl()
180 std::vector<unique_ptr<Declaration>> NestInNamespaces(vector<unique_ptr<Declaration>> decls, in NestInNamespaces()
184 vector<unique_ptr<Declaration>> inner; in NestInNamespaces()
185 inner.emplace_back(unique_ptr<Declaration>{new CppNamespace{*it, std::move(decls)}}); in NestInNamespaces()
192 std::vector<unique_ptr<Declaration>> NestInNamespaces(unique_ptr<Declaration> decl, in NestInNamespaces()
194 vector<unique_ptr<Declaration>> decls; in NestInNamespaces()
228 unique_ptr<Declaration> DefineClientTransaction(const TypeNamespace& types, in DefineClientTransaction()
233 unique_ptr<MethodImpl> ret{new MethodImpl{ in DefineClientTransaction()
394 return unique_ptr<Declaration>(ret.release()); in DefineClientTransaction()
397 unique_ptr<Declaration> DefineClientMetaTransaction(const TypeNamespace&, in DefineClientMetaTransaction()
427 return unique_ptr<Declaration>(new LiteralDecl(code.str())); in DefineClientMetaTransaction()
434 unique_ptr<Document> BuildClientSource(const TypeNamespace& types, const AidlInterface& interface, in BuildClientSource()
446 vector<unique_ptr<Declaration>> file_decls; in BuildClientSource()
451 file_decls.push_back(unique_ptr<Declaration>{new ConstructorImpl{ in BuildClientSource()
464 file_decls.push_back(unique_ptr<Declaration>(new LiteralDecl(code))); in BuildClientSource()
469 unique_ptr<Declaration> m; in BuildClientSource()
478 return unique_ptr<Document>{new CppSource{ in BuildClientSource()
489 for (const unique_ptr<AidlArgument>& a : method.GetArguments()) { in HandleServerTransaction()
552 vector<unique_ptr<AstNode>> status_args; in HandleServerTransaction()
630 unique_ptr<Document> BuildServerSource(const TypeNamespace& types, const AidlInterface& interface, in BuildServerSource()
642 unique_ptr<MethodImpl> on_transact{new MethodImpl{ in BuildServerSource()
699 vector<unique_ptr<Declaration>> decls; in BuildServerSource()
717 decls.push_back(unique_ptr<Declaration>(new LiteralDecl(code))); in BuildServerSource()
719 return unique_ptr<Document>{ in BuildServerSource()
723 unique_ptr<Document> BuildInterfaceSource(const TypeNamespace& types, in BuildInterfaceSource()
735 vector<unique_ptr<Declaration>> decls; in BuildInterfaceSource()
737 unique_ptr<MacroDecl> meta_if{new MacroDecl{ in BuildInterfaceSource()
749 unique_ptr<MethodImpl> getter(new MethodImpl("const " + cppType + "&", in BuildInterfaceSource()
792 return unique_ptr<Document>{new CppSource{ in BuildInterfaceSource()
797 unique_ptr<Document> BuildClientHeader(const TypeNamespace& types, const AidlInterface& interface, in BuildClientHeader()
805 unique_ptr<ConstructorDecl> constructor{new ConstructorDecl{ in BuildClientHeader()
811 unique_ptr<ConstructorDecl> destructor{new ConstructorDecl{ in BuildClientHeader()
816 vector<unique_ptr<Declaration>> publics; in BuildClientHeader()
836 vector<unique_ptr<Declaration>> privates; in BuildClientHeader()
842 unique_ptr<ClassDecl> bp_class{new ClassDecl{ in BuildClientHeader()
849 return unique_ptr<Document>{ in BuildClientHeader()
854 unique_ptr<Document> BuildServerHeader(const TypeNamespace& /* types */, in BuildServerHeader()
859 unique_ptr<Declaration> on_transact{new MethodDecl{ in BuildServerHeader()
870 vector<unique_ptr<Declaration>> publics; in BuildServerHeader()
886 unique_ptr<ClassDecl> bn_class{ in BuildServerHeader()
893 return unique_ptr<Document>{ in BuildServerHeader()
898 unique_ptr<Document> BuildInterfaceHeader(const TypeNamespace& types, in BuildInterfaceHeader()
915 unique_ptr<ClassDecl> if_class{new ClassDecl{i_name, "::android::IInterface"}}; in BuildInterfaceHeader()
916 if_class->AddPublic(unique_ptr<Declaration>{new MacroDecl{ in BuildInterfaceHeader()
924 if_class->AddPublic(unique_ptr<Declaration>(new LiteralDecl(code.str()))); in BuildInterfaceHeader()
927 std::vector<std::unique_ptr<Declaration>> string_constants; in BuildInterfaceHeader()
928 unique_ptr<Enum> int_constant_enum{new Enum{"", "int32_t"}}; in BuildInterfaceHeader()
935 unique_ptr<Declaration> getter(new MethodDecl("const " + cppType + "&", constant->GetName(), in BuildInterfaceHeader()
977 vector<unique_ptr<Declaration>> decls; in BuildInterfaceHeader()
999 return unique_ptr<Document>{ in BuildInterfaceHeader()
1005 std::unique_ptr<Document> BuildParcelHeader(const TypeNamespace& /*types*/, in BuildParcelHeader()
1008 unique_ptr<ClassDecl> parcel_class{new ClassDecl{parcel.GetName(), "::android::Parcelable"}}; in BuildParcelHeader()
1027 parcel_class->AddPublic(std::unique_ptr<LiteralDecl>(new LiteralDecl(out.str()))); in BuildParcelHeader()
1030 unique_ptr<MethodDecl> read(new MethodDecl(kAndroidStatusLiteral, "readFromParcel", in BuildParcelHeader()
1034 unique_ptr<MethodDecl> write(new MethodDecl( in BuildParcelHeader()
1039 return unique_ptr<Document>{new CppHeader{ in BuildParcelHeader()
1043 std::unique_ptr<Document> BuildParcelSource(const TypeNamespace& /*types*/, in BuildParcelSource()
1046 unique_ptr<MethodImpl> read{new MethodImpl{kAndroidStatusLiteral, parcel.GetName(), in BuildParcelSource()
1075 unique_ptr<MethodImpl> write{ in BuildParcelSource()
1102 vector<unique_ptr<Declaration>> file_decls; in BuildParcelSource()
1109 return unique_ptr<Document>{ in BuildParcelSource()
1116 unique_ptr<Document> header; in WriteHeader()
1137 unique_ptr<CodeWriter> code_writer(io_delegate.GetCodeWriter(header_path)); in WriteHeader()
1172 unique_ptr<CodeWriter> writer = io_delegate.GetCodeWriter(output_file); in GenerateCppInterface()
1196 unique_ptr<CodeWriter> header_writer(io_delegate.GetCodeWriter(header_path)); in GenerateCppParcel()
1202 unique_ptr<CodeWriter> bp_writer(io_delegate.GetCodeWriter(bp_header)); in GenerateCppParcel()
1206 unique_ptr<CodeWriter> bn_writer(io_delegate.GetCodeWriter(bn_header)); in GenerateCppParcel()
1210 unique_ptr<CodeWriter> source_writer = io_delegate.GetCodeWriter(output_file); in GenerateCppParcel()