diff mbox series

[pushed] diagnostics: SARIF output: tweak ASCII art in comment

Message ID 20240801005038.1003787-1-dmalcolm@redhat.com
State New
Headers show
Series [pushed] diagnostics: SARIF output: tweak ASCII art in comment | expand

Commit Message

David Malcolm Aug. 1, 2024, 12:50 a.m. UTC
Pushed to trunk as r15-2463-gf829e627f40c95.

gcc/ChangeLog:
	* diagnostic-format-sarif.cc: Tweak ASCII art in comment
	to show edges for both directions in the digraph.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
---
 gcc/diagnostic-format-sarif.cc | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/gcc/diagnostic-format-sarif.cc b/gcc/diagnostic-format-sarif.cc
index 84b3e651e46..5900b9ea9b7 100644
--- a/gcc/diagnostic-format-sarif.cc
+++ b/gcc/diagnostic-format-sarif.cc
@@ -290,17 +290,17 @@  private:
    . |  have 'char'"|                    | | with type 'int'")                |
    . | in include-chain-1-2.h            | | in include-chain-1-1.h           |
    . +-----------------------------------+ +----------------------------------+
-   .                   |                                      |
-   .                   | included-by                          | included-by
-   .                   V                                      V
+   .            ^         |                            ^         |
+   .   includes |         | included-by       includes |         | included-by
+   .            |         V                            |         V
    .  +--------------------------------+    +--------------------------------+
    .  |"id": 1                         |    |"id": 3                         |
    .  | #include "include-chain-1-2.h" |    | #include "include-chain-1-1.h" |
    .  | in include-chain-1.h           |    | in include-chain-1.h           |
    .  +--------------------------------+    +--------------------------------+
-   .                         |                      |
-   .                         | included-by          | included-by
-   .                         V                      V
+   .                   ^     |                       ^    |
+   .          includes |     | included-by  includes |    | included-by
+   .                   |     V                       |    V
    .                  +------------------------------------+
    .                  |"id": 4                             |
    .                  | The  #include "include-chain-1.h"  |