On Fri, Aug 21, 2015 at 11:27 AM, Yaron Keren via cfe-commits < cfe-commits@lists.llvm.org> wrote:
> Author: yrnkrn > Date: Fri Aug 21 04:27:24 2015 > New Revision: 245683 > > URL: http://llvm.org/viewvc/llvm-project?rev=245683&view=rev > Log: > Tweak clang-tidy-diff.py to recognize "filename" in the diff ourput Out of curiosity, when does this happen? (I mean quotes around the file name) > > > Modified: > clang-tools-extra/trunk/clang-tidy/tool/clang-tidy-diff.py > > Modified: clang-tools-extra/trunk/clang-tidy/tool/clang-tidy-diff.py > URL: > http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/tool/clang-tidy-diff.py?rev=245683&r1=245682&r2=245683&view=diff > > ============================================================================== > --- clang-tools-extra/trunk/clang-tidy/tool/clang-tidy-diff.py (original) > +++ clang-tools-extra/trunk/clang-tidy/tool/clang-tidy-diff.py Fri Aug 21 > 04:27:24 2015 > @@ -67,7 +67,7 @@ def main(): > filename = None > lines_by_file = {} > for line in sys.stdin: > - match = re.search('^\+\+\+\ (.*?/){%s}(\S*)' % args.p, line) > + match = re.search('^\+\+\+\ \"?(.*?/){%s}([^ \t\"]*)' % args.p, line) > if match: > filename = match.group(2) > if filename == None: > > > _______________________________________________ > cfe-commits mailing list > cfe-commits@lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits >
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits