[PATCH] D24163: [scan-build-py] Increase precision of timestamp in report directory name

Laszlo Nagy via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 2 05:08:40 PDT 2016


rizsotto.mailinglist added a comment.

looks good to me. i like the test. :) but would keep the `pep8` cleanness.


================
Comment at: tools/scan-build-py/libscanbuild/report.py:38
@@ -36,3 +37,3 @@
 
-    stamp = time.strftime('scan-build-%Y-%m-%d-%H%M%S-', time.localtime())
+    stamp = datetime.datetime.now().strftime('scan-build-%Y-%m-%d-%H-%M-%S-%f-')
 
----------------
this line length's is 80, which breaks the `pep8` check. (would kill some of the `-`)


https://reviews.llvm.org/D24163





More information about the cfe-commits mailing list