diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index a17efab57bcdf..fb52b90ae4a3c 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -212,6 +212,8 @@ Improvements to Clang's diagnostics (`#51567: `_) - Clang now diagnoses narrowing implicit conversions on variable initializers in immediate function context and on constexpr variable template initializers. +- Clang now prints its 'note' diagnostic in cyan instead of black, to be more compatible + with terminals with dark background colors. This is also more consistent with GCC. Bug Fixes in This Version ------------------------- diff --git a/clang/lib/Frontend/TextDiagnostic.cpp b/clang/lib/Frontend/TextDiagnostic.cpp index eaa6e8d29a1de..779dead5d058d 100644 --- a/clang/lib/Frontend/TextDiagnostic.cpp +++ b/clang/lib/Frontend/TextDiagnostic.cpp @@ -24,8 +24,7 @@ using namespace clang; -static const enum raw_ostream::Colors noteColor = - raw_ostream::BLACK; +static const enum raw_ostream::Colors noteColor = raw_ostream::CYAN; static const enum raw_ostream::Colors remarkColor = raw_ostream::BLUE; static const enum raw_ostream::Colors fixitColor =