[PATCH] D38357: [Support/Regex] Handle tabulators and escaped chars in square brackets.

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 28 07:10:57 PDT 2017

curdeius created this revision.

This patch is motivated by bug #34739 (https://bugs.llvm.org/show_bug.cgi?id=34739).
Clang-format misbehaves because escape sequence '\t' in regex is treated as literal 't'.
This patch handles escaped characters inside square brackets as well (so that somebody can write `R("^[\[\]\t]")` as a regex pattern).



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38357.116984.patch
Type: text/x-patch
Size: 3871 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170928/ada2015b/attachment-0001.bin>

More information about the cfe-commits mailing list