Add a note: prefix to all notes. (#4330)

Omit the `note: ` prefix and the snippet from the "in import" note that
precedes a diagnostic.

This makes our diagnostic output more closely match that of Clang and
GCC.
This commit is contained in:
Richard Smith
2024-09-23 23:59:25 +00:00
committed by GitHub
parent c107aaad13
commit 8d45530c5f
163 changed files with 725 additions and 940 deletions
@@ -11,7 +11,7 @@
// CHECK:STDERR: fail_param_redecl.carbon:[[@LINE+6]]:14: error: duplicate name being declared in the same scope
// CHECK:STDERR: fn F(n: i32, n: i32);
// CHECK:STDERR: ^
// CHECK:STDERR: fail_param_redecl.carbon:[[@LINE+3]]:6: name is previously declared here
// CHECK:STDERR: fail_param_redecl.carbon:[[@LINE+3]]:6: note: name is previously declared here
// CHECK:STDERR: fn F(n: i32, n: i32);
// CHECK:STDERR: ^
fn F(n: i32, n: i32);