/fuchsia/zircon/system/host/abigen/ |
H A D | types.h | 16 extern const std::map<std::string, std::string> rust_overrides; 17 extern const std::map<std::string, std::string> rust_primitives; 18 extern const std::map<std::string, std::string> rust_reserved_words; 33 std [all...] |
H A D | header_generator.h | 19 std::vector<std::pair<std::string, bool (*)(const Syscall&)>>; 21 HeaderGenerator(const std::string& function_prefix, argument 23 const std::string& no_args_type, 25 const std::map<std::string, std::string>& attributes) 32 bool syscall(std::ofstream& os, const Syscall& sc) override; 35 const std [all...] |
H A D | generator.h | 16 virtual bool header(std::ofstream& os); 17 virtual bool syscall(std::ofstream& os, const Syscall& sc) = 0; 18 virtual bool footer(std::ofstream& os); 28 virtual void preCall(std::ofstream& os, const Syscall& sc) const {} 29 virtual void postCall(std::ofstream& os, const Syscall& sc, std::string return_var) const {} 38 VDsoAsmGenerator(const std::string& syscall_macro, 39 const std::string& name_prefix, 40 const std::vector<CallWrapper*>& call_wrappers) 45 bool syscall(std [all...] |
H A D | abigen_generator.h | 16 const std::map<std::string, std::string>& get_type_to_default_suffix(); 17 const std::map<std::string, Generator&>& get_type_to_generator(); 24 bool Generate(const std::map<std::string, std::string>& type_to_filename); 28 bool generate_one(const std::string& output_file, 29 Generator& generator, const std [all...] |
H A D | vdso_wrapper_generator.h | 13 VdsoWrapperGenerator(std::string wrapper_prefix, 14 std::string call_prefix, 15 std::vector<CallWrapper*> call_wrappers) 19 bool syscall(std::ofstream& os, const Syscall& sc) override; 22 void pre_call(std::ofstream& os, const Syscall& sc) const; 23 void post_call(std::ofstream& os, const Syscall& sc, std::string return_var) const; 25 std::string wrapper_prefix_; 26 std::string call_prefix_; 27 std [all...] |
/fuchsia/zircon/system/utest/fidl-compiler/ |
H A D | examples.h | 17 static std::map<std::string, std::string>& map() { return map_; } 20 static std::map<std::string, std::string> map_;
|
H A D | formatter_unittests.cpp | 20 std::map<std::string, std::string> formatted_output_; 25 std::unique_ptr<fidl::raw::File> ast; 41 std::unique_ptr<fidl::raw::File> ast; 57 std::regex trailing_ws(".*\\s+$"); 58 std::regex top_level_decl("^\\s*(?:struct|enum|union)\\s+.*"); 59 std::regex attribute("\\s*\\[[A-Za-z]+\\]\\s*"); 60 std::regex comment("\\s*//.*"); 64 std [all...] |
/fuchsia/zircon/third_party/ulib/jemalloc/src/ |
H A D | jemalloc_cpp.cpp | 18 void *operator new(std::size_t size); 19 void *operator new[](std::size_t size); 20 void *operator new(std::size_t size, const std::nothrow_t &) noexcept; 21 void *operator new[](std::size_t size, const std::nothrow_t &) noexcept; 24 void operator delete(void *ptr, const std::nothrow_t &) noexcept; 25 void operator delete[](void *ptr, const std::nothrow_t &) noexcept; 29 void operator delete(void *ptr, std::size_t size) noexcept; 30 void operator delete[](void *ptr, std [all...] |
/fuchsia/zircon/system/host/fidl/include/fidl/ |
H A D | source_manager.h | 20 void AddSourceFile(std::unique_ptr<SourceFile> file); 22 const std::vector<std::unique_ptr<SourceFile>>& sources() const { return sources_; } 25 std::vector<std::unique_ptr<SourceFile>> sources_;
|
H A D | c_generator.h | 34 std::ostringstream ProduceHeader(); 35 std::ostringstream ProduceClient(); 36 std::ostringstream ProduceServer(); 41 std::string type; 42 std::string name; 43 std::string element_type; 44 std::vector<uint32_t> array_counts; 49 std::string c_name; 50 std::string coded_name; 51 const std [all...] |
H A D | raw_ast.h | 90 CompoundIdentifier(Token start, Token end, std::vector<std::unique_ptr<Identifier>> components) 91 : SourceElement(start, end), components(std::move(components)) {} 95 std::vector<std::unique_ptr<Identifier>> components; 174 explicit IdentifierConstant(std::unique_ptr<CompoundIdentifier> identifier) 175 : Constant(identifier->start_, Kind::kIdentifier), identifier(std::move(identifier)) {} 177 std::unique_ptr<CompoundIdentifier> identifier; 184 explicit LiteralConstant(std::unique_ptr<Literal> literal) 185 : Constant(literal->start_, Kind::kLiteral), literal(std [all...] |
H A D | names.h | 18 std::string StringJoin(const std::vector<StringView>& strings, StringView separator); 20 std::string NameIdentifier(SourceLocation name); 21 std::string NameName(const flat::Name& name, StringView library_separator, StringView separator); 23 std::string NameLibrary(const std::vector<StringView>& library_name); 24 std::string NameLibraryCHeader(const std::vector<StringView>& library_name); 26 std::string NamePrimitiveCType(types::PrimitiveSubtype subtype); 27 std [all...] |
H A D | coded_ast.h | 78 Type(Kind kind, std::string coded_name, uint32_t size, CodingNeeded coding_needed) 79 : kind(kind), coded_name(std::move(coded_name)), size(size), coding_needed(coding_needed) {} 82 const std::string coded_name; 88 PrimitiveType(std::string name, types::PrimitiveSubtype subtype, uint32_t size) 89 : Type(Kind::kPrimitive, std::move(name), size, CodingNeeded::kNotNeeded), 96 HandleType(std::string name, types::HandleSubtype subtype, types::Nullability nullability) 97 : Type(Kind::kHandle, std::move(name), 4u, CodingNeeded::kNeeded), subtype(subtype), 105 InterfaceHandleType(std::string name, types::Nullability nullability) 106 : Type(Kind::kInterfaceHandle, std::move(name), 4u, CodingNeeded::kNeeded), 113 RequestHandleType(std [all...] |
H A D | flat_ast.h | 34 std::string LibraryName(const Library* library, StringView separator); 85 : Constant(Kind::kIdentifier), name(std::move(name)) {} 91 explicit LiteralConstant(std::unique_ptr<raw::Literal> literal) 92 : Constant(Kind::kLiteral), literal(std::move(literal)) {} 94 std::unique_ptr<raw::Literal> literal; 98 Ordinal(std::unique_ptr<raw::Ordinal> literal, uint32_t value) 99 : literal_(std::move(literal)), value_(value) {} 105 std::unique_ptr<raw::Ordinal> literal_; 111 IntConstant(std::unique_ptr<Constant> constant, IntType value) 112 : constant_(std [all...] |
H A D | error_reporter.h | 23 const std::vector<std::string>& errors() const { return errors_; }; 26 std::vector<std::string> errors_;
|
H A D | parser.h | 20 std::unique_ptr<raw::File> Parse() { return ParseFile(); } 55 std::string message("unexpected token "); 81 std::unique_ptr<raw::AttributeList> const& attributes) { 105 std::unique_ptr<raw::Identifier> ParseIdentifier(bool is_discarded = false); 106 std::unique_ptr<raw::CompoundIdentifier> ParseCompoundIdentifier(); 108 std::unique_ptr<raw::StringLiteral> ParseStringLiteral(); 109 std::unique_ptr<raw::NumericLiteral> ParseNumericLiteral(); 110 std::unique_ptr<raw::TrueLiteral> ParseTrueLiteral(); 111 std::unique_ptr<raw::FalseLiteral> ParseFalseLiteral(); 112 std [all...] |
H A D | source_file.h | 18 SourceFile(std::string filename, std::string data); 34 std::string filename_; 35 std::string data_; 36 std::vector<StringView> lines_;
|
/fuchsia/zircon/system/host/xdc-server/ |
H A D | xdc-server.h | 27 void AddCompletedRead(std::unique_ptr<UsbHandler::Transfer> transfer); 30 void ProcessCompletedReads(const std::unique_ptr<UsbHandler>& usb_handler); 32 zx_status_t ProcessWrites(const std::unique_ptr<UsbHandler>& usb_handler); 34 void ReturnTransfers(const std::unique_ptr<UsbHandler>& usb_handler); 57 std::vector<std::unique_ptr<UsbHandler::Transfer>> completed_reads_; 59 std::unique_ptr<UsbHandler::Transfer> pending_write_; 70 static std::unique_ptr<XdcServer> Create(); 85 bool RegisterStream(std::shared_ptr<Client> client); 88 std [all...] |
H A D | usb-handler.cpp | 10 std::unique_ptr<UsbHandler::Transfer> UsbHandler::Transfer::Create() { 11 auto transfer = std::make_unique<UsbHandler::Transfer>(ConstructorTag{}); 36 std::unique_ptr<UsbHandler> UsbHandler::Create() { 37 auto usb_handler = std::make_unique<UsbHandler>(ConstructorTag{}); 45 bool UsbHandler::HandleEvents(std::vector<std::unique_ptr<Transfer>>& completed_reads) { 50 void UsbHandler::RequeueRead(std::unique_ptr<Transfer> transfer) { 54 void UsbHandler::GetFdUpdates(std::map<int, short>& added_fds, std::set<int>& removed_fds) { 58 std [all...] |
H A D | usb-handler.h | 56 static std::unique_ptr<Transfer> Create(); 71 static std::unique_ptr<UsbHandler> Create(); 82 bool HandleEvents(std::vector<std::unique_ptr<Transfer>>& completed_reads); 85 void RequeueRead(std::unique_ptr<Transfer> transfer); 95 void GetFdUpdates(std::map<int, short>& added_fds, std::set<int>& removed_fds); 99 std::unique_ptr<Transfer> GetWriteTransfer(); 100 void ReturnWriteTransfer(std::unique_ptr<Transfer>); 103 std [all...] |
/fuchsia/zircon/system/host/fidl/lib/ |
H A D | source_manager.cpp | 17 std::string data; 26 AddSourceFile(std::make_unique<SourceFile>(filename, std::move(data))); 30 void SourceManager::AddSourceFile(std::unique_ptr<SourceFile> file) { 31 sources_.push_back(std::move(file));
|
H A D | parser.cpp | 88 error_reporter_->ReportError(last_token_, std::move(message)); 94 std::unique_ptr<raw::Identifier> Parser::ParseIdentifier(bool is_discarded) { 99 return std::make_unique<raw::Identifier>(identifier, identifier); 102 std::unique_ptr<raw::CompoundIdentifier> Parser::ParseCompoundIdentifier() { 103 std::vector<std::unique_ptr<raw::Identifier>> components; 129 return std::make_unique<raw::CompoundIdentifier>(first_token, MarkLastUseful(), std::move(components)); 132 std::unique_ptr<raw::StringLiteral> Parser::ParseStringLiteral() { 137 return std [all...] |
H A D | error_reporter.cpp | 12 std::string MakeSquiggle(const std::string& surrounding_line, int column) { 13 std::string squiggle; 26 std::string FormatError(const SourceLocation& location, StringView message, size_t squiggle_size = 0u) { 28 std::string surrounding_line = location.SourceLine(&position); 30 std::string squiggle = MakeSquiggle(surrounding_line, position.column); 34 squiggle += std::string(squiggle_size, '~'); 46 std::string error = location.position(); 64 errors_.push_back(std::move(error)); 77 errors_.push_back(std [all...] |
/fuchsia/zircon/system/ulib/fbl/include/fbl/ |
H A D | new.h | 26 namespace std { namespace 28 } // namespace std 32 void* operator new(size_t size, const std::nothrow_t&) noexcept; 33 void* operator new[](size_t size, const std::nothrow_t&) noexcept; 37 void* operator new(size_t size, void* caller, const std::nothrow_t&) noexcept; 38 void* operator new[](size_t size, void* caller, const std::nothrow_t&) noexcept;
|
/fuchsia/zircon/system/host/abigen/parser/ |
H A D | parser.h | 16 std::vector<std::string>& operator+=(std::vector<std::string>& v1, 17 const std::vector<std::string>& v2); 18 std::vector<std::string> tokenize_string(const std::string& str); 37 void print_error(const char* what, const std [all...] |