[PATCH] D19260: [analyzer][scan-build-py] subprocess output handling reviewed in clang module

Devin Coughlin via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 9 18:17:48 PDT 2016


dcoughlin accepted this revision.
dcoughlin added a comment.
This revision is now accepted and ready to land.

This looks good to me. I've run this on a suite of open source projects and it reported no changes in the reference results. Thanks for simplifying and adding the extra tests!


================
Comment at: tools/scan-build-py/libscanbuild/clang.py:90
@@ -89,2 +89,3 @@
 
-    {<plugin name>: (<plugin description>, <is active by default>)} """
+    predicate.patterns = [re.compile(r'^' + a + r'(\.|$)') for a in checkers]
+    return predicate
----------------
What's the benefit of using a function attribute here rather than simply closing over a local variable?


http://reviews.llvm.org/D19260





More information about the cfe-commits mailing list