]> gcc.gnu.org Git - gcc.git/commit
analyzer: respect GCC_COLORS in out-of-bounds diagrams [PR114588]
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 5 Apr 2024 18:49:53 +0000 (14:49 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 5 Apr 2024 18:49:53 +0000 (14:49 -0400)
commit4b02dd48f531ea88587edd2b75b6e5243b4389e8
treeb95d482fc0a5f1d5bb54cc5cb757e803bd28780e
parent75b49c0e9012f5ecef0d32f3f6a0d8da66517576
analyzer: respect GCC_COLORS in out-of-bounds diagrams [PR114588]

gcc/analyzer/ChangeLog:
PR analyzer/114588
* access-diagram.cc (access_diagram_impl::access_diagram_impl):
Replace hardcoded colors for valid_style and invalid_style with
calls to text_art::get_style_from_color_cap_name.

gcc/ChangeLog:
PR analyzer/114588
* diagnostic-color.cc (color_dict): Add "valid" and "invalid" as
color capability names.
* doc/invoke.texi: Document them in description of GCC_COLORS.
* text-art/style.cc: Include "diagnostic-color.h".
(text_art::get_style_from_color_cap_name): New.
* text-art/types.h (get_style_from_color_cap_name): New decl.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/analyzer/access-diagram.cc
gcc/diagnostic-color.cc
gcc/doc/invoke.texi
gcc/text-art/style.cc
gcc/text-art/types.h
This page took 0.059876 seconds and 6 git commands to generate.