Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 186) sorted by relevance

12345678

/system/host/abigen/
A Dtypes.h16 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;
35 std::string kind_str() const;
38 std::string to_string() const;
42 std::string name;
43 std::string type;
50 std::string as_cpp_cast(const std::string& arg) const;
66 std::string name;
92 const std::string map_override(
[all …]
A Dtypes.cpp9 using std::string;
12 const std::map<string, string> rust_overrides = {
17 const std::map<string, string> rust_primitives = {
34 const std::map<string, string> rust_reserved_words = {
49 string ArraySpec::kind_str() const { in kind_str()
84 string ArraySpec::to_string() const { in to_string()
88 const string map_override(const string& name, const std::map<string, string>& overrides) { in map_override() argument
93 string TypeSpec::to_string() const { in to_string()
130 string ret = safe_name + ": "; in as_rust_declaration()
144 string TypeSpec::as_cpp_cast(const string& arg) const { in as_cpp_cast()
[all …]
A Dabigen.cpp15 using std::string;
28 string output_prefix = "generated"; in main()
31 std::map<string, string> type_to_filename; in main()
36 const string command(argv[0]); in main()
40 string type = command.substr(1); in main()
41 type_to_filename[type] = string(argv[1]); in main()
59 const string delimiter = ", "; in main()
60 const string valid_types = in main()
63 get_type_to_default_suffix().end(), std::string(), in main()
64 [delimiter](const std::string& s, in main()
[all …]
A Dabigen_generator.cpp15 using std::string;
18 const map<string, string> user_attrs = {
29 const map<string, string> kernel_attrs = {
102 const map<string, Generator&> type_to_generator = {
143 const map<string, string> type_to_default_suffix = {
159 const map<string, string>& get_type_to_default_suffix() { in get_type_to_default_suffix()
163 const map<string, Generator&>& get_type_to_generator() { in get_type_to_generator()
182 bool AbigenGenerator::Generate(const map<string, string>& type_to_filename) { in Generate() argument
203 const string& output_file, Generator& generator, const string& type) { in generate_one()
228 void AbigenGenerator::print_error(const char* what, const string& file) { in print_error()
A Dgenerator.h39 const std::string& name_prefix, in VDsoAsmGenerator()
48 const std::string syscall_macro_;
49 const std::string name_prefix_;
63 const std::string define_prefix_;
80 std::map<const std::string, std::vector<const std::string*>> category_map_;
93 KernelWrapperGenerator(const std::string& syscall_prefix, const std::string& wrapper_prefix, in KernelWrapperGenerator()
103 const std::string syscall_prefix_;
104 const std::string wrapper_prefix_;
105 const std::string define_prefix_;
133 std::string before_args, std::string inter_arg,
[all …]
A Dheader_generator.h19 std::vector<std::pair<std::string, bool (*)(const Syscall&)>>;
21 HeaderGenerator(const std::string& function_prefix, in HeaderGenerator()
23 const std::string& no_args_type, in HeaderGenerator()
25 const std::map<std::string, std::string>& attributes) in HeaderGenerator() argument
35 const std::string function_prefix_;
37 const std::string no_args_type_;
38 const std::map<std::string, std::string> attributes_;
A Dabigen_generator.h17 const std::map<std::string, std::string>& get_type_to_default_suffix();
18 const std::map<std::string, Generator&>& get_type_to_generator();
25 bool Generate(const std::map<std::string, std::string>& type_to_filename);
31 bool generate_one(const std::string& output_file,
32 Generator& generator, const std::string& type);
33 void print_error(const char* what, const std::string& file);
/system/host/fidl/include/fidl/
A Dnames.h20 std::string NameIdentifier(SourceLocation name);
29 std::string NameHandleSubtype(types::HandleSubtype subtype);
32 std::string NameRawLiteralKind(raw::Literal::Kind kind);
35 std::string NameFlatTypeKind(flat::Type::Kind kind);
38 std::string NameFlatType(const flat::Type* type);
43 std::string NameOrdinal(StringView method_name);
46 std::string NameTable(StringView type_name);
47 std::string NamePointer(StringView name);
48 std::string NameMembers(StringView name);
49 std::string NameFields(StringView name);
[all …]
A Dcoded_ast.h82 const std::string coded_name;
122 std::string qname) in StructType()
128 std::string pointer_name;
129 std::string qname;
143 std::string qname) in TableType()
149 std::string pointer_name;
150 std::string qname;
164 std::string pointer_name, std::string qname) in UnionType()
171 std::string pointer_name;
172 std::string qname;
[all …]
A Dstring_view.h19 constexpr StringView(const std::string& string) : StringView(string.data(), string.size()) {} in StringView() argument
21 StringView(const char* string) : data_(string), size_(strlen(string)) {} in StringView() argument
23 operator std::string() const { return std::string(data(), size()); } in string() function
A Dc_generator.h46 std::string type;
47 std::string name;
61 std::string c_name;
62 std::string coded_name;
71 std::string c_name;
78 std::string name;
83 std::string name;
88 std::string c_name;
95 std::string c_name;
101 std::string c_name;
[all …]
/system/host/banjo/include/banjo/
A Dnames.h20 std::string NameIdentifier(SourceLocation name);
29 std::string NameHandleSubtype(types::HandleSubtype subtype);
32 std::string NameRawLiteralKind(raw::Literal::Kind kind);
35 std::string NameFlatTypeKind(flat::Type::Kind kind);
41 std::string NameOrdinal(StringView method_name);
43 std::string NameParameter(StringView message_name,
46 std::string NameTable(StringView type_name);
47 std::string NamePointer(StringView name);
48 std::string NameMembers(StringView name);
49 std::string NameFields(StringView name);
[all …]
A Dstring_view.h19 constexpr StringView(const std::string& string) : StringView(string.data(), string.size()) {} in StringView() argument
21 StringView(const char* string) : data_(string), size_(strlen(string)) {} in StringView() argument
23 operator std::string() const { return std::string(data(), size()); } in string() function
A Dddk_generator.h39 std::string type;
40 std::string name;
42 std::string doc;
54 std::string doc;
61 std::string name;
62 std::string doc;
67 std::string name;
69 std::string doc;
86 std::string doc;
95 std::string doc;
[all …]
A Dcoded_ast.h72 const std::string coded_name;
111 …StructType(std::string name, std::vector<StructField> fields, uint32_t size, std::string pointer_n… in StructType()
112 std::string qname) in StructType()
118 std::string pointer_name;
119 std::string qname;
133 std::string pointer_name, std::string qname) in UnionType()
140 std::string pointer_name;
141 std::string qname;
146 UnionPointerType(std::string name, const UnionType* union_type) in UnionPointerType()
154 MessageType(std::string name, std::vector<StructField> fields, uint32_t size, std::string qname) in MessageType()
[all …]
/system/host/abigen/parser/
A Dparser.cpp10 using std::string;
13 std::vector<string> tokenize_string(const string& str) { in tokenize_string()
14 std::vector<string> tokens; in tokenize_string()
15 string tok; in tokenize_string()
34 std::vector<string>& operator+=(std::vector<string>& v1, const std::vector<string>& v2) { in operator +=()
39 void FileCtx::print_error(const char* what, const string& extra) const { in print_error()
53 std::string eof_str;
55 const string& TokenStream::curr() { in curr()
61 const string& TokenStream::next() { in next()
70 const string& TokenStream::peek_next() const { in peek_next()
A Dparser.h16 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);
46 const std::string& curr();
47 const std::string& next();
48 const std::string& peek_next() const;
54 const std::vector<std::string>& tokens_;
70 const std::vector<std::string>& tokens, in process_line()
72 static std::vector<std::string> acc; in process_line()
95 std::vector<std::string> t(std::move(acc)); in process_line()
[all …]
/system/host/banjo/lib/
A Dnames.cpp20 std::string NameSize(uint64_t size) { in NameSize()
31 std::string result; in StringJoin()
376 std::string pointer_name(name); in NamePointer()
382 std::string members_name(name); in NameMembers()
388 std::string fields_name(name); in NameFields()
402 std::string name("Handle"); in NameCodedHandle()
409 std::string name(interface_name); in NameCodedInterfaceHandle()
416 std::string name(interface_name); in NameCodedRequestHandle()
423 std::string name("Array"); in NameCodedArray()
431 std::string name("Vector"); in NameCodedVector()
[all …]
A Derror_reporter.cpp12 std::string MakeSquiggle(const std::string& surrounding_line, int column) { in MakeSquiggle()
13 std::string squiggle; in MakeSquiggle()
26 std::string FormatError(const SourceLocation& location, StringView message, size_t squiggle_size = … in FormatError()
28 std::string surrounding_line = location.SourceLine(&position); in FormatError()
30 std::string squiggle = MakeSquiggle(surrounding_line, position.column); in FormatError()
34 squiggle += std::string(squiggle_size, '~'); in FormatError()
46 std::string error = location.position(); in FormatError()
82 std::string error("error: "); in ReportError()
/system/host/fidl/lib/
A Dnames.cpp20 std::string NameSize(uint64_t size) { in NameSize()
31 std::string result; in StringJoin()
457 std::string pointer_name(name); in NamePointer()
463 std::string members_name(name); in NameMembers()
469 std::string fields_name(name); in NameFields()
487 std::string name("Handle"); in NameCodedHandle()
494 std::string name(interface_name); in NameCodedInterfaceHandle()
501 std::string name(interface_name); in NameCodedRequestHandle()
508 std::string name("Array"); in NameCodedArray()
516 std::string name("Vector"); in NameCodedVector()
[all …]
A Derror_reporter.cpp12 std::string MakeSquiggle(const std::string& surrounding_line, int column) { in MakeSquiggle()
13 std::string squiggle; in MakeSquiggle()
26 std::string Format(std::string qualifier, const SourceLocation& location, in Format()
29 std::string surrounding_line = location.SourceLine(&position); in Format()
31 std::string squiggle = MakeSquiggle(surrounding_line, position.column); in Format()
35 squiggle += std::string(squiggle_size, '~'); in Format()
47 std::string error = location.position(); in Format()
85 std::string error("error: "); in ReportError()
/system/utest/fidl-compiler/
A Dtest_library.h14 static fidl::SourceFile MakeSourceFile(const std::string& filename, const std::string& raw_source_c… in MakeSourceFile()
15 std::string source_code(raw_source_code); in MakeSourceFile()
23 TestLibrary(const std::string& raw_source_code) in TestLibrary()
26 TestLibrary(const std::string& filename, const std::string& raw_source_code) in TestLibrary()
61 std::string GenerateJSON() { in GenerateJSON()
67 bool AddSourceFile(const std::string& filename, const std::string& raw_source_code) { in AddSourceFile()
77 const fidl::flat::Struct* LookupStruct(const std::string& name) { in LookupStruct()
86 const fidl::flat::Table* LookupTable(const std::string& name) { in LookupTable()
95 const fidl::flat::Union* LookupUnion(const std::string& name) { in LookupUnion()
121 const std::vector<std::string>& errors() const { in errors()
[all …]
A Dvisitor_unittests.cpp40 std::string gap(ws_location, size); in OnSourceElementShared()
41 std::string content(current_token.data().data(), current_token.data().size()); in OnSourceElementShared()
46 std::string& output() { return output_; } in output()
49 std::string output_;
56 std::string targeted_diff(const char* expected, const char* actual, int size) { in targeted_diff()
72 std::string s("Expected contains \""); in targeted_diff()
73 s.append(std::string(expected + start, expected_end - start)); in targeted_diff()
75 s.append(std::string(actual + start, actual_end - start)); in targeted_diff()
92 std::string expected(library.source_file().data()); in read_and_write_direct_test()
93 std::string output = visitor.output(); in read_and_write_direct_test()
[all …]
/system/utest/banjo-compiler/
A Dtest_library.h14 static banjo::SourceFile MakeSourceFile(const std::string& filename, const std::string& raw_source_… in MakeSourceFile()
15 std::string source_code(raw_source_code); in MakeSourceFile()
23 TestLibrary(const std::string& raw_source_code) in TestLibrary()
26 TestLibrary(const std::string& filename, const std::string& raw_source_code) in TestLibrary()
57 std::string GenerateJSON() { in GenerateJSON()
63 bool AddSourceFile(const std::string& filename, const std::string& raw_source_code) { in AddSourceFile()
74 const banjo::flat::Struct* LookupStruct(const std::string& name) { in LookupStruct()
83 const banjo::flat::Union* LookupUnion(const std::string& name) { in LookupUnion()
92 const banjo::flat::Interface* LookupInterface(const std::string& name) { in LookupInterface()
105 const std::vector<std::string>& errors() const { in errors()
A Dvisitor_unittests.cpp40 std::string gap(ws_location, size); in OnSourceElementShared()
41 std::string content(current_token.data().data(), current_token.data().size()); in OnSourceElementShared()
46 std::string& output() { return output_; } in output()
49 std::string output_;
56 std::string targeted_diff(const char* expected, const char* actual, int size) { in targeted_diff()
72 std::string s("Expected contains \""); in targeted_diff()
73 s.append(std::string(expected + start, expected_end - start)); in targeted_diff()
75 s.append(std::string(actual + start, actual_end - start)); in targeted_diff()
92 std::string expected(library.source_file().data()); in read_and_write_direct_test()
93 std::string output = visitor.output(); in read_and_write_direct_test()
[all …]

Completed in 45 milliseconds

12345678