Re: [PATCH] D19260: [analyzer][scan-build-py] subprocess output handling reviewed in clang module
rizsotto.mailinglist closed this revision. rizsotto.mailinglist added a comment. commited at r282317 https://reviews.llvm.org/D19260 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Re: [PATCH] D19260: [analyzer][scan-build-py] subprocess output handling reviewed in clang module
Eugene.Zelenko added a subscriber: Eugene.Zelenko. Eugene.Zelenko added a comment. Looks like patch was not committed. https://reviews.llvm.org/D19260 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Re: [PATCH] D19260: [analyzer][scan-build-py] subprocess output handling reviewed in clang module
rizsotto.mailinglist added a comment. hey Devin, thanks for looking to it. Comment at: tools/scan-build-py/libscanbuild/clang.py:90 @@ -89,2 +89,3 @@ -{: (, )} """ +predicate.patterns = [re.compile(r'^' + a + r'(\.|$)') for a in checkers] +return predicate dcoughlin wrote: > What's the benefit of using a function attribute here rather than simply > closing over a local variable? there is no difference between the two. (it even can be written in the same order.) i guess, just wanted to decorate the name of the variable. i have no preference. http://reviews.llvm.org/D19260 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Re: [PATCH] D19260: [analyzer][scan-build-py] subprocess output handling reviewed in clang module
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 @@ -{: (, )} """ +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 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits