From 45cace41b288f4b0c0bf5e84eb0f335fabcfdd6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81d=C3=A1m=20Balogh?= Date: Wed, 13 Apr 2022 19:48:50 +0200 Subject: [PATCH 1/5] CFG Visualizer (implemented as a test detector) Sometimes, during development it is an advantage if the CFG can be seen visually. This patch adds a detector that generates the CFG in DOT format so it can be viewed (or converted to a graphical format) using GraphViz. --- spotbugs/etc/findbugs.xml | 2 + spotbugs/etc/messages.xml | 7 + .../edu/umd/cs/findbugs/detect/ViewCFG.java | 162 ++++++++++++++++++ 3 files changed, 171 insertions(+) create mode 100644 spotbugs/src/main/java/edu/umd/cs/findbugs/detect/ViewCFG.java diff --git a/spotbugs/etc/findbugs.xml b/spotbugs/etc/findbugs.xml index 9f3afa6676a..1007dbd6e50 100644 --- a/spotbugs/etc/findbugs.xml +++ b/spotbugs/etc/findbugs.xml @@ -623,6 +623,8 @@ reports="IO_APPENDING_TO_OBJECT_OUTPUT_STREAM"/>