[PATCH] D115168: [clang-format] [PR49298] Sort includes pass will sort inside raw strings
Marek Kurdej via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 9 12:46:47 PST 2021
curdeius added inline comments.
================
Comment at: clang/lib/Format/Format.cpp:2590
+ llvm::Regex RawStringRegex(
+ "R\"([A-Za-z0-9_{}#<>%:;.?*+/^&\\$|~!=,'\\-]*)\\(");
+ SmallVector<StringRef, 2> RawStringMatches;
----------------
MyDeveloperDay wrote:
> curdeius wrote:
> > I'm picky but you missed `[` and `]`, no?
> I couldn't get them to work, even if I escaped them.. let me go look at the Regex unit tests
You can try putting`]` at the beginning (just after the opening`[`). It *should* work.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115168/new/
https://reviews.llvm.org/D115168
More information about the cfe-commits
mailing list