@@ -355,21 +355,21 @@ class Lexer {
355
355
enum : char { Literal, Expr } Kind;
356
356
// Loc+Length for the segment inside the string literal, without quotes.
357
357
SourceLoc Loc;
358
- unsigned Length, IndentToStrip, DelimiterLength ;
358
+ unsigned Length, IndentToStrip, CustomDelimiterLen ;
359
359
bool IsFirstSegment, IsLastSegment;
360
360
361
361
static StringSegment getLiteral (SourceLoc Loc, unsigned Length,
362
362
bool IsFirstSegment, bool IsLastSegment,
363
363
unsigned IndentToStrip,
364
- unsigned DelimiterLength ) {
364
+ unsigned CustomDelimiterLen ) {
365
365
StringSegment Result;
366
366
Result.Kind = Literal;
367
367
Result.Loc = Loc;
368
368
Result.Length = Length;
369
369
Result.IsFirstSegment = IsFirstSegment;
370
370
Result.IsLastSegment = IsLastSegment;
371
371
Result.IndentToStrip = IndentToStrip;
372
- Result.DelimiterLength = DelimiterLength ;
372
+ Result.CustomDelimiterLen = CustomDelimiterLen ;
373
373
return Result;
374
374
}
375
375
@@ -381,7 +381,7 @@ class Lexer {
381
381
Result.IsFirstSegment = false ;
382
382
Result.IsLastSegment = false ;
383
383
Result.IndentToStrip = 0 ;
384
- Result.DelimiterLength = 0 ;
384
+ Result.CustomDelimiterLen = 0 ;
385
385
return Result;
386
386
}
387
387
@@ -399,13 +399,13 @@ class Lexer {
399
399
bool IsFirstSegment = false ,
400
400
bool IsLastSegment = false ,
401
401
unsigned IndentToStrip = 0 ,
402
- unsigned DelimiterLength = 0 );
402
+ unsigned CustomDelimiterLen = 0 );
403
403
StringRef getEncodedStringSegment (StringSegment Segment,
404
404
SmallVectorImpl<char > &Buffer) const {
405
405
return getEncodedStringSegment (
406
406
StringRef (getBufferPtrForSourceLoc (Segment.Loc ), Segment.Length ),
407
407
Buffer, Segment.IsFirstSegment , Segment.IsLastSegment ,
408
- Segment.IndentToStrip , Segment.DelimiterLength );
408
+ Segment.IndentToStrip , Segment.CustomDelimiterLen );
409
409
}
410
410
411
411
// / \brief Given a string literal token, separate it into string/expr segments
@@ -469,8 +469,8 @@ class Lexer {
469
469
return diagnose (Loc, Diagnostic (DiagID, std::forward<ArgTypes>(Args)...));
470
470
}
471
471
472
- void formToken (tok Kind, const char *TokStart, bool MultilineString = false ,
473
- unsigned DelimiterLength = 0 );
472
+ void formToken (tok Kind, const char *TokStart, bool IsMultilineString = false ,
473
+ unsigned CustomDelimiterLen = 0 );
474
474
void formEscapedIdentifierToken (const char *TokStart);
475
475
476
476
// / Advance to the end of the line.
@@ -495,9 +495,9 @@ class Lexer {
495
495
static unsigned lexUnicodeEscape (const char *&CurPtr, Lexer *Diags);
496
496
497
497
unsigned lexCharacter (const char *&CurPtr, char StopQuote,
498
- bool EmitDiagnostics, bool MultilineString = false ,
499
- unsigned DelimiterLength = 0 );
500
- void lexStringLiteral (unsigned DelimiterLength = 0 );
498
+ bool EmitDiagnostics, bool IsMultilineString = false ,
499
+ unsigned CustomDelimiterLen = 0 );
500
+ void lexStringLiteral (unsigned CustomDelimiterLen = 0 );
501
501
void lexEscapedIdentifier ();
502
502
503
503
void tryLexEditorPlaceholder ();
0 commit comments