Lines Matching refs:StringToks
1266 StringLiteralParser(ArrayRef<Token> StringToks, in StringLiteralParser() argument
1272 init(StringToks); in StringLiteralParser()
1275 void StringLiteralParser::init(ArrayRef<Token> StringToks){ in init() argument
1278 if (StringToks.empty() || StringToks[0].getLength() < 2) in init()
1285 assert(!StringToks.empty() && "expected at least one token"); in init()
1286 MaxTokenLength = StringToks[0].getLength(); in init()
1287 assert(StringToks[0].getLength() >= 2 && "literal token is invalid!"); in init()
1288 SizeBound = StringToks[0].getLength()-2; // -2 for "". in init()
1289 Kind = StringToks[0].getKind(); in init()
1295 for (unsigned i = 1; i != StringToks.size(); ++i) { in init()
1296 if (StringToks[i].getLength() < 2) in init()
1297 return DiagnoseLexingError(StringToks[i].getLocation()); in init()
1301 assert(StringToks[i].getLength() >= 2 && "literal token is invalid!"); in init()
1302 SizeBound += StringToks[i].getLength()-2; // -2 for "". in init()
1305 if (StringToks[i].getLength() > MaxTokenLength) in init()
1306 MaxTokenLength = StringToks[i].getLength(); in init()
1310 if (StringToks[i].isNot(Kind) && StringToks[i].isNot(tok::string_literal)) { in init()
1312 Kind = StringToks[i].getKind(); in init()
1315 Diags->Report(StringToks[i].getLocation(), in init()
1351 for (unsigned i = 0, e = StringToks.size(); i != e; ++i) { in init()
1358 Lexer::getSpelling(StringToks[i], ThisTokBuf, SM, Features, in init()
1361 return DiagnoseLexingError(StringToks[i].getLocation()); in init()
1376 if (StringToks[i].hasUCN()) in init()
1382 UDSuffixTokLoc = StringToks[i].getLocation(); in init()
1385 if (StringToks[i].hasUCN()) { in init()
1396 SourceLocation TokLoc = StringToks[i].getLocation(); in init()
1443 if (CopyStringFragment(StringToks[i], ThisTokBegin, BeforeCRLF)) in init()
1454 return DiagnoseLexingError(StringToks[i].getLocation()); in init()
1480 if (CopyStringFragment(StringToks[i], ThisTokBegin, in init()
1489 FullSourceLoc(StringToks[i].getLocation(), SM), in init()
1496 FullSourceLoc(StringToks[i].getLocation(), SM), in init()
1538 Diags->Report(StringToks.front().getLocation(), in init()
1540 << SourceRange(StringToks.front().getLocation(), in init()
1541 StringToks.back().getLocation()); in init()
1550 Diags->Report(StringToks.front().getLocation(), in init()
1554 << SourceRange(StringToks.front().getLocation(), in init()
1555 StringToks.back().getLocation()); in init()