MCPcopy Create free account
hub / github.com/WebAssembly/wabt / FormatErrorsToFile

Function FormatErrorsToFile

src/error-formatter.cc:116–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void FormatErrorsToFile(const Errors& errors,
117 Location::Type location_type,
118 LexerSourceLineFinder* line_finder,
119 FILE* file,
120 const std::string& header,
121 PrintHeader print_header,
122 int source_line_max_length) {
123 Color color(file);
124 std::string s =
125 FormatErrorsToString(errors, location_type, line_finder, color, header,
126 print_header, source_line_max_length);
127 fwrite(s.data(), 1, s.size(), file);
128}
129
130} // namespace wabt

Callers 14

ProgramMainFunction · 0.85
ProgramMainFunction · 0.85
ProgramMainFunction · 0.85
ProgramMainFunction · 0.85
ProgramMainFunction · 0.85
ProgramMainFunction · 0.85
ProgramMainFunction · 0.85
ProgramMainFunction · 0.85
ReadTextModuleMethod · 0.85
ReadInvalidModuleMethod · 0.85
ReadMalformedModuleMethod · 0.85
OnModuleCommandMethod · 0.85

Calls 3

FormatErrorsToStringFunction · 0.85
dataMethod · 0.80
sizeMethod · 0.45

Tested by 4

ReadTextModuleMethod · 0.68
ReadInvalidModuleMethod · 0.68
ReadMalformedModuleMethod · 0.68
OnModuleCommandMethod · 0.68