]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
diagnostics: SARIF output: tweak ASCII art in comment
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 1 Aug 2024 00:38:40 +0000 (20:38 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Thu, 1 Aug 2024 00:38:40 +0000 (20:38 -0400)
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

index 84b3e651e462744c43a310570d250c7e8f8acc71..5900b9ea9b75e7ff3c51819a89fc7f601903e7bb 100644 (file)
@@ -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"  |