reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Lex/LiteralSupport.cpp
 1466   if (StringToks.empty() || StringToks[0].getLength() < 2)
 1466   if (StringToks.empty() || StringToks[0].getLength() < 2)
 1473   assert(!StringToks.empty() && "expected at least one token");
 1474   MaxTokenLength = StringToks[0].getLength();
 1475   assert(StringToks[0].getLength() >= 2 && "literal token is invalid!");
 1476   SizeBound = StringToks[0].getLength()-2;  // -2 for "".
 1477   Kind = StringToks[0].getKind();
 1483   for (unsigned i = 1; i != StringToks.size(); ++i) {
 1484     if (StringToks[i].getLength() < 2)
 1485       return DiagnoseLexingError(StringToks[i].getLocation());
 1489     assert(StringToks[i].getLength() >= 2 && "literal token is invalid!");
 1490     SizeBound += StringToks[i].getLength()-2;  // -2 for "".
 1493     if (StringToks[i].getLength() > MaxTokenLength)
 1494       MaxTokenLength = StringToks[i].getLength();
 1498     if (StringToks[i].isNot(Kind) && StringToks[i].isNot(tok::string_literal)) {
 1498     if (StringToks[i].isNot(Kind) && StringToks[i].isNot(tok::string_literal)) {
 1500         Kind = StringToks[i].getKind();
 1503           Diags->Report(StringToks[i].getLocation(),
 1539   for (unsigned i = 0, e = StringToks.size(); i != e; ++i) {
 1546       Lexer::getSpelling(StringToks[i], ThisTokBuf, SM, Features,
 1549       return DiagnoseLexingError(StringToks[i].getLocation());
 1564         if (StringToks[i].hasUCN())
 1570         UDSuffixTokLoc = StringToks[i].getLocation();
 1573         if (StringToks[i].hasUCN()) {
 1584             SourceLocation TokLoc = StringToks[i].getLocation();
 1631         if (CopyStringFragment(StringToks[i], ThisTokBegin, BeforeCRLF))
 1642         return DiagnoseLexingError(StringToks[i].getLocation());
 1668           if (CopyStringFragment(StringToks[i], ThisTokBegin,
 1677                           FullSourceLoc(StringToks[i].getLocation(), SM),
 1684                             FullSourceLoc(StringToks[i].getLocation(), SM),
 1726         Diags->Report(StringToks.front().getLocation(),
 1728           << SourceRange(StringToks.front().getLocation(),
 1729                          StringToks.back().getLocation());
 1738       Diags->Report(StringToks.front().getLocation(),
 1742         << SourceRange(StringToks.front().getLocation(),
 1743                        StringToks.back().getLocation());