[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...
Size: 3871 bytes
Desc: not available
More information about the cfe-commits