1818
1919namespace quick_lint_js {
2020template <class Diagnostic , class Locator >
21- c_api_error_reporter <Diagnostic, Locator>::c_api_error_reporter () = default ;
21+ c_api_diag_reporter <Diagnostic, Locator>::c_api_diag_reporter () = default ;
2222
2323template <class Diagnostic , class Locator >
24- void c_api_error_reporter <Diagnostic, Locator>::set_input(
24+ void c_api_diag_reporter <Diagnostic, Locator>::set_input(
2525 padded_string_view input, const Locator *locator) {
2626 this ->locator_ = locator;
2727 this ->input_ = input.data ();
2828}
2929
3030template <class Diagnostic , class Locator >
31- void c_api_error_reporter <Diagnostic, Locator>::reset() {
31+ void c_api_diag_reporter <Diagnostic, Locator>::reset() {
3232 this ->diagnostics_ .clear ();
3333 // TODO(strager): Release allocated string memory.
3434}
3535
3636template <class Diagnostic , class Locator >
37- void c_api_error_reporter <Diagnostic, Locator>::report_impl(diag_type type,
38- void *error) {
37+ void c_api_diag_reporter <Diagnostic, Locator>::report_impl(diag_type type,
38+ void *error) {
3939 c_api_error_formatter formatter (this );
4040 formatter.format (get_diagnostic_info (type), error);
4141}
4242
4343template <class Diagnostic , class Locator >
44- const Diagnostic *c_api_error_reporter <Diagnostic, Locator>::get_diagnostics() {
44+ const Diagnostic *c_api_diag_reporter <Diagnostic, Locator>::get_diagnostics() {
4545 // Null-terminate the returned errors.
4646 this ->diagnostics_ .emplace_back ();
4747
4848 return this ->diagnostics_ .data ();
4949}
5050
5151template <class Diagnostic , class Locator >
52- char8 *c_api_error_reporter <Diagnostic, Locator>::allocate_c_string(
52+ char8 *c_api_diag_reporter <Diagnostic, Locator>::allocate_c_string(
5353 string8_view string) {
5454 char8 *result =
5555 this ->string_allocator_ .template allocate_uninitialized_array <char8>(
@@ -61,7 +61,7 @@ char8 *c_api_error_reporter<Diagnostic, Locator>::allocate_c_string(
6161
6262template <class Diagnostic , class Locator >
6363c_api_error_formatter<Diagnostic, Locator>::c_api_error_formatter(
64- c_api_error_reporter <Diagnostic, Locator> *reporter)
64+ c_api_diag_reporter <Diagnostic, Locator> *reporter)
6565 : reporter_(reporter) {}
6666
6767template <class Diagnostic , class Locator >
@@ -123,7 +123,7 @@ void c_api_error_formatter<Diagnostic, Locator>::write_after_message(
123123
124124template class c_api_error_formatter <qljs_web_demo_diagnostic,
125125 web_demo_locator>;
126- template class c_api_error_reporter <qljs_web_demo_diagnostic, web_demo_locator>;
126+ template class c_api_diag_reporter <qljs_web_demo_diagnostic, web_demo_locator>;
127127}
128128
129129// quick-lint-js finds bugs in JavaScript programs.
0 commit comments