Home | History | Annotate | Download | only in Lex

Lines Matching refs:StringToks

1160 StringLiteralParser(const Token *StringToks, unsigned NumStringToks,
1166 init(StringToks, NumStringToks);
1169 void StringLiteralParser::init(const Token *StringToks, unsigned NumStringToks){
1172 if (NumStringToks == 0 || StringToks[0].getLength() < 2)
1180 MaxTokenLength = StringToks[0].getLength();
1181 assert(StringToks[0].getLength() >= 2 && "literal token is invalid!");
1182 SizeBound = StringToks[0].getLength()-2; // -2 for "".
1183 Kind = StringToks[0].getKind();
1190 if (StringToks[i].getLength() < 2)
1191 return DiagnoseLexingError(StringToks[i].getLocation());
1195 assert(StringToks[i].getLength() >= 2 && "literal token is invalid!");
1196 SizeBound += StringToks[i].getLength()-2; // -2 for "".
1199 if (StringToks[i].getLength() > MaxTokenLength)
1200 MaxTokenLength = StringToks[i].getLength();
1204 if (StringToks[i].isNot(Kind) && StringToks[i].isNot(tok::string_literal)) {
1206 Kind = StringToks[i].getKind();
1209 Diags->Report(StringToks[i].getLocation(),
1252 Lexer::getSpelling(StringToks[i], ThisTokBuf, SM, Features,
1255 return DiagnoseLexingError(StringToks[i].getLocation());
1273 UDSuffixTokLoc = StringToks[i].getLocation();
1280 SourceLocation TokLoc = StringToks[i].getLocation();
1317 if (CopyStringFragment(StringToks[i], ThisTokBegin,
1324 return DiagnoseLexingError(StringToks[i].getLocation());
1350 if (CopyStringFragment(StringToks[i], ThisTokBegin,
1359 FullSourceLoc(StringToks[i].getLocation(), SM),
1366 FullSourceLoc(StringToks[i].getLocation(), SM),
1408 Diags->Report(StringToks[0].getLocation(),
1410 << SourceRange(StringToks[0].getLocation(),
1411 StringToks[NumStringToks-1].getLocation());
1420 Diags->Report(StringToks[0].getLocation(),
1424 << SourceRange(StringToks[0].getLocation(),
1425 StringToks[NumStringToks-1].getLocation());