forked from OSchip/llvm-project
[clang-format] Simplify raw string regex. NFC.
Introduced in https://reviews.llvm.org/D115168. Reviewed By: MyDeveloperDay, HazardyKnusperkeks Differential Revision: https://reviews.llvm.org/D116647
This commit is contained in:
parent
df4ad3625f
commit
46db030188
|
@ -2596,8 +2596,9 @@ tooling::Replacements sortCppIncludes(const FormatStyle &Style, StringRef Code,
|
|||
bool MainIncludeFound = false;
|
||||
bool FormattingOff = false;
|
||||
|
||||
// '[' must be the first and '-' the last character inside [...].
|
||||
llvm::Regex RawStringRegex(
|
||||
"R\"(([\\[A-Za-z0-9_{}#<>%:;.?*+/^&\\$|~!=,'\\-]|])*)\\(");
|
||||
"R\"([][A-Za-z0-9_{}#<>%:;.?*+/^&\\$|~!=,'-]*)\\(");
|
||||
SmallVector<StringRef, 2> RawStringMatches;
|
||||
std::string RawStringTermination = ")\"";
|
||||
|
||||
|
|
Loading…
Reference in New Issue