This is an archive of the discontinued LLVM Phabricator instance.

dump_ast_matchers.py: fix replacement regexps
ClosedPublic

Authored by a.sidorin on Feb 18 2016, 6:25 AM.

Details

Summary

Using re.sub() to replace a sample with '%'s looks strange and causes a format string error if a matcher description contains "%s". This patch resolves this issue.

Diff Detail

Repository
rL LLVM

Event Timeline

a.sidorin updated this revision to Diff 48306.Feb 18 2016, 6:25 AM
a.sidorin retitled this revision from to dump_ast_matchers.py: fix replacement regexps.
a.sidorin updated this object.
a.sidorin added reviewers: klimek, aaron.ballman.
a.sidorin set the repository for this revision to rL LLVM.
a.sidorin added a subscriber: cfe-commits.
klimek accepted this revision.Feb 18 2016, 6:35 AM
klimek edited edge metadata.

lg

This revision is now accepted and ready to land.Feb 18 2016, 6:35 AM
This revision was automatically updated to reflect the committed changes.