Lines Matching refs:unique_ptr

36 using std::unique_ptr;
65 unique_ptr<AstNode> BreakOnStatusNotOk() { in BreakOnStatusNotOk()
70 return unique_ptr<AstNode>(ret); in BreakOnStatusNotOk()
73 unique_ptr<AstNode> GotoErrorOnBadStatus() { in GotoErrorOnBadStatus()
78 return unique_ptr<AstNode>(ret); in GotoErrorOnBadStatus()
82 unique_ptr<AstNode> ReturnOnStatusNotOk() { in ReturnOnStatusNotOk()
87 return unique_ptr<AstNode>(ret); in ReturnOnStatusNotOk()
110 for (const unique_ptr<AidlArgument>& a : method.GetArguments()) { in BuildArgList()
154 unique_ptr<Declaration> BuildMethodDecl(const AidlMethod& method, in BuildMethodDecl()
165 return unique_ptr<Declaration>{ in BuildMethodDecl()
172 unique_ptr<CppNamespace> NestInNamespaces( in NestInNamespaces()
173 vector<unique_ptr<Declaration>> decls, in NestInNamespaces()
182 unique_ptr<CppNamespace> inner{new CppNamespace{*it, std::move(decls)}}; in NestInNamespaces()
190 unique_ptr<CppNamespace> NestInNamespaces(unique_ptr<Declaration> decl, in NestInNamespaces()
192 vector<unique_ptr<Declaration>> decls; in NestInNamespaces()
251 unique_ptr<Declaration> DefineClientTransaction(const TypeNamespace& types, in DefineClientTransaction()
256 unique_ptr<MethodImpl> ret{new MethodImpl{ in DefineClientTransaction()
371 return unique_ptr<Declaration>(ret.release()); in DefineClientTransaction()
376 unique_ptr<Document> BuildClientSource(const TypeNamespace& types, in BuildClientSource()
382 vector<unique_ptr<Declaration>> file_decls; in BuildClientSource()
387 file_decls.push_back(unique_ptr<Declaration>{new ConstructorImpl{ in BuildClientSource()
395 unique_ptr<Declaration> m = DefineClientTransaction( in BuildClientSource()
400 return unique_ptr<Document>{new CppSource{ in BuildClientSource()
412 for (const unique_ptr<AidlArgument>& a : method.GetArguments()) { in HandleServerTransaction()
450 vector<unique_ptr<AstNode>> status_args; in HandleServerTransaction()
501 unique_ptr<Document> BuildServerSource(const TypeNamespace& types, in BuildServerSource()
508 unique_ptr<MethodImpl> on_transact{new MethodImpl{ in BuildServerSource()
558 return unique_ptr<Document>{new CppSource{ in BuildServerSource()
563 unique_ptr<Document> BuildInterfaceSource(const TypeNamespace& /* types */, in BuildInterfaceSource()
575 unique_ptr<ConstructorDecl> meta_if{new ConstructorDecl{ in BuildInterfaceSource()
580 return unique_ptr<Document>{new CppSource{ in BuildInterfaceSource()
585 unique_ptr<Document> BuildClientHeader(const TypeNamespace& types, in BuildClientHeader()
590 unique_ptr<ConstructorDecl> constructor{new ConstructorDecl{ in BuildClientHeader()
596 unique_ptr<ConstructorDecl> destructor{new ConstructorDecl{ in BuildClientHeader()
601 vector<unique_ptr<Declaration>> publics; in BuildClientHeader()
609 unique_ptr<ClassDecl> bp_class{ in BuildClientHeader()
616 return unique_ptr<Document>{new CppHeader{ in BuildClientHeader()
625 unique_ptr<Document> BuildServerHeader(const TypeNamespace& /* types */, in BuildServerHeader()
630 unique_ptr<Declaration> on_transact{new MethodDecl{ in BuildServerHeader()
640 std::vector<unique_ptr<Declaration>> publics; in BuildServerHeader()
643 unique_ptr<ClassDecl> bn_class{ in BuildServerHeader()
650 return unique_ptr<Document>{new CppHeader{ in BuildServerHeader()
657 unique_ptr<Document> BuildInterfaceHeader(const TypeNamespace& types, in BuildInterfaceHeader()
672 unique_ptr<ClassDecl> if_class{ in BuildInterfaceHeader()
675 if_class->AddPublic(unique_ptr<Declaration>{new ConstructorDecl{ in BuildInterfaceHeader()
679 unique_ptr<Enum> constant_enum{new Enum{"", "int32_t"}}; in BuildInterfaceHeader()
688 unique_ptr<Enum> call_enum{new Enum{"Call"}}; in BuildInterfaceHeader()
699 return unique_ptr<Document>{new CppHeader{ in BuildInterfaceHeader()
710 unique_ptr<Document> header; in WriteHeader()
731 unique_ptr<CodeWriter> code_writer(io_delegate.GetCodeWriter(header_path)); in WriteHeader()
791 unique_ptr<CodeWriter> writer = io_delegate.GetCodeWriter( in GenerateCpp()