[cfe-dev] [PATCH] scan-build: Explicitly say "no bugs found"

Martin Storsjo martin at martin.st
Mon Mar 4 08:36:43 PST 2013


Such a message exists for the case when the output directory doesn't
exist at all, but the output directory seems to be created
unconditionally.

This makes the result less ambiguous.
---
 tools/scan-build/scan-build |    1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/scan-build/scan-build b/tools/scan-build/scan-build
index 013c1f6..4965dbd 100755
--- a/tools/scan-build/scan-build
+++ b/tools/scan-build/scan-build
@@ -505,6 +505,7 @@ sub Postprocess {
       Diag("Removing directory '$Dir' because it contains no reports.\n");
       system ("rm", "-fR", $Dir);
     }
+    Diag("No bugs found.\n");
     return 0;
   }
   
-- 
1.7.9.4




More information about the cfe-dev mailing list