We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4536e69 commit 893524eCopy full SHA for 893524e
lib/Parse/Lexer.cpp
@@ -1250,9 +1250,11 @@ static bool advanceIfMultilineDelimiter(const char *&CurPtr,
1250
1251
/// advanceIfCustomDelimiter - Extracts/detects any custom delimiter on
1252
/// opening a string literal, advances CurPtr if a delimiter is found and
1253
-/// returns a non-zero delimiter length. CurPtr[-1] generally '#' when called.
+/// returns a non-zero delimiter length. CurPtr[-1] must be '#' when called.
1254
static unsigned advanceIfCustomDelimiter(const char *&CurPtr,
1255
DiagnosticEngine *Diags) {
1256
+ assert(CurPtr[-1] == '#');
1257
+
1258
const char *TmpPtr = CurPtr;
1259
unsigned CustomDelimiterLen = 1;
1260
while (diagnoseZeroWidthMatchAndAdvance('#', TmpPtr, Diags))
0 commit comments