reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
271 if (Current >= End) 272 Current = End - 1; 281 printError(SMLoc::getFromPointer(Current), SourceMgr::DK_Error, Message); 286 setError(Message, Current); 298 return StringRef(Current, End - Current); 298 return StringRef(Current, End - Current); 770 Current = InputBuffer.getBufferStart(); 899 auto Final = skip_while(Func, Current); 900 Column += Final - Current; 901 Current = Final; 918 if (Current == End) 920 if (( *Current == '%' 921 && Current + 2 < End 922 && is_ns_hex_digit(*(Current + 1)) 923 && is_ns_hex_digit(*(Current + 2))) 924 || is_ns_word_char(*Current) 925 || StringRef(Current, 1).find_first_of("#;/?:@&=+$,_.!~*'()[]") 927 ++Current; 937 if (Current == End) 939 if (uint8_t(*Current) >= 0x80) 941 if (uint8_t(*Current) == Expected) { 942 ++Current; 950 Current += Distance; 952 assert(Current <= End && "Skipped past the end"); 963 auto Next = skip_b_break(Current); 964 if (Next == Current) 968 Current = Next; 1012 T.Range = StringRef(Current, 1); 1031 T.Range = StringRef(Current, 0); 1038 if (*Current != '#') 1043 StringRef::iterator I = skip_nb_char(Current); 1044 if (I == Current) 1046 Current = I; 1053 while (*Current == ' ' || *Current == '\t') { 1053 while (*Current == ' ' || *Current == '\t') { 1060 StringRef::iterator i = skip_b_break(Current); 1061 if (i == Current) 1063 Current = i; 1079 T.Range = StringRef(Current, EI.second); 1081 Current += EI.second; 1098 T.Range = StringRef(Current, 0); 1109 StringRef::iterator Start = Current; 1111 StringRef::iterator NameStart = Current; 1112 Current = skip_while(&Scanner::skip_ns_char, Current); 1112 Current = skip_while(&Scanner::skip_ns_char, Current); 1113 StringRef Name(NameStart, Current - NameStart); 1114 Current = skip_while(&Scanner::skip_s_white, Current); 1114 Current = skip_while(&Scanner::skip_s_white, Current); 1118 Current = skip_while(&Scanner::skip_ns_char, Current); 1118 Current = skip_while(&Scanner::skip_ns_char, Current); 1120 T.Range = StringRef(Start, Current - Start); 1124 Current = skip_while(&Scanner::skip_ns_char, Current); 1124 Current = skip_while(&Scanner::skip_ns_char, Current); 1125 Current = skip_while(&Scanner::skip_s_white, Current); 1125 Current = skip_while(&Scanner::skip_s_white, Current); 1126 Current = skip_while(&Scanner::skip_ns_char, Current); 1126 Current = skip_while(&Scanner::skip_ns_char, Current); 1128 T.Range = StringRef(Start, Current - Start); 1142 T.Range = StringRef(Current, 3); 1152 T.Range = StringRef(Current, 1); 1171 T.Range = StringRef(Current, 1); 1184 T.Range = StringRef(Current, 1); 1196 T.Range = StringRef(Current, 1); 1211 T.Range = StringRef(Current, 1); 1245 T.Range = StringRef(Current, 1); 1271 StringRef::iterator Start = Current; 1275 ++Current; 1276 while (Current != End && *Current != '"') 1276 while (Current != End && *Current != '"') 1277 ++Current; 1280 } while ( Current != End 1281 && *(Current - 1) == '\\' 1282 && wasEscaped(Start + 1, Current)); 1287 if (Current + 1 < End && *Current == '\'' && *(Current + 1) == '\'') { 1287 if (Current + 1 < End && *Current == '\'' && *(Current + 1) == '\'') { 1287 if (Current + 1 < End && *Current == '\'' && *(Current + 1) == '\'') { 1290 } else if (*Current == '\'') 1292 StringRef::iterator i = skip_nb_char(Current); 1293 if (i == Current) { 1294 i = skip_b_break(Current); 1295 if (i == Current) 1297 Current = i; 1303 Current = i; 1309 if (Current == End) { 1310 setError("Expected quote at end of scalar", Current); 1317 T.Range = StringRef(Start, Current - Start); 1328 StringRef::iterator Start = Current; 1334 if (*Current == '#') 1337 while (!isBlankOrBreak(Current)) { 1338 if ( FlowLevel && *Current == ':' 1339 && !(isBlankOrBreak(Current + 1) || *(Current + 1) == ',')) { 1339 && !(isBlankOrBreak(Current + 1) || *(Current + 1) == ',')) { 1340 setError("Found unexpected ':' while scanning a plain scalar", Current); 1345 if ( (*Current == ':' && isBlankOrBreak(Current + 1)) 1345 if ( (*Current == ':' && isBlankOrBreak(Current + 1)) 1347 && (StringRef(Current, 1).find_first_of(",:?[]{}") 1351 StringRef::iterator i = skip_nb_char(Current); 1352 if (i == Current) 1354 Current = i; 1359 if (!isBlankOrBreak(Current)) 1363 StringRef::iterator Tmp = Current; 1386 Current = Tmp; 1388 if (Start == Current) { 1394 T.Range = StringRef(Start, Current - Start); 1406 StringRef::iterator Start = Current; 1410 if ( *Current == '[' || *Current == ']' 1410 if ( *Current == '[' || *Current == ']' 1411 || *Current == '{' || *Current == '}' 1411 || *Current == '{' || *Current == '}' 1412 || *Current == ',' 1413 || *Current == ':') 1415 StringRef::iterator i = skip_ns_char(Current); 1416 if (i == Current) 1418 Current = i; 1422 if (Start == Current) { 1429 T.Range = StringRef(Start, Current - Start); 1442 if (Current != End && (*Current == '+' || *Current == '-')) { 1442 if (Current != End && (*Current == '+' || *Current == '-')) { 1442 if (Current != End && (*Current == '+' || *Current == '-')) { 1443 Indicator = *Current; 1465 if (Current != End && (*Current >= '1' && *Current <= '9')) { 1465 if (Current != End && (*Current >= '1' && *Current <= '9')) { 1465 if (Current != End && (*Current >= '1' && *Current <= '9')) { 1466 Indent = unsigned(*Current - '0'); 1474 auto Start = Current; 1481 Current = skip_while(&Scanner::skip_s_white, Current); 1481 Current = skip_while(&Scanner::skip_s_white, Current); 1484 if (Current == End) { // EOF, we have an empty scalar. 1487 T.Range = StringRef(Start, Current - Start); 1494 setError("Expected a line break after block scalar header", Current); 1508 if (skip_nb_char(Current) != Current) { 1508 if (skip_nb_char(Current) != Current) { 1524 if (skip_b_break(Current) != Current && 1524 if (skip_b_break(Current) != Current && 1529 LongestAllSpaceLine = Current; 1533 if (Current == End) { 1551 auto I = skip_s_space(Current); 1552 if (I == Current) 1554 Current = I; 1558 if (skip_nb_char(Current) == Current) 1558 if (skip_nb_char(Current) == Current) 1567 if (Current != End && *Current == '#') { // Trailing comment. 1567 if (Current != End && *Current == '#') { // Trailing comment. 1571 setError("A text line is less indented than the block scalar", Current); 1579 assert(*Current == '|' || *Current == '>'); 1579 assert(*Current == '|' || *Current == '>'); 1590 auto Start = Current; 1608 auto LineStart = Current; 1610 if (LineStart != Current) { 1612 Str.append(StringRef(LineStart, Current - LineStart)); 1617 if (Current == End) 1625 if (Current == End && !LineBreaks) 1636 T.Range = StringRef(Start, Current - Start); 1643 StringRef::iterator Start = Current; 1646 if (Current == End || isBlankOrBreak(Current)); // An empty tag. 1646 if (Current == End || isBlankOrBreak(Current)); // An empty tag. 1647 else if (*Current == '<') { 1654 Current = skip_while(&Scanner::skip_ns_char, Current); 1654 Current = skip_while(&Scanner::skip_ns_char, Current); 1659 T.Range = StringRef(Start, Current - Start); 1676 if (Current == End) 1683 if (Column == 0 && *Current == '%') 1686 if (Column == 0 && Current + 4 <= End 1687 && *Current == '-' 1688 && *(Current + 1) == '-' 1689 && *(Current + 2) == '-' 1690 && (Current + 3 == End || isBlankOrBreak(Current + 3))) 1690 && (Current + 3 == End || isBlankOrBreak(Current + 3))) 1693 if (Column == 0 && Current + 4 <= End 1694 && *Current == '.' 1695 && *(Current + 1) == '.' 1696 && *(Current + 2) == '.' 1697 && (Current + 3 == End || isBlankOrBreak(Current + 3))) 1697 && (Current + 3 == End || isBlankOrBreak(Current + 3))) 1700 if (*Current == '[') 1703 if (*Current == '{') 1706 if (*Current == ']') 1709 if (*Current == '}') 1712 if (*Current == ',') 1715 if (*Current == '-' && isBlankOrBreak(Current + 1)) 1715 if (*Current == '-' && isBlankOrBreak(Current + 1)) 1718 if (*Current == '?' && (FlowLevel || isBlankOrBreak(Current + 1))) 1718 if (*Current == '?' && (FlowLevel || isBlankOrBreak(Current + 1))) 1721 if (*Current == ':' && (FlowLevel || isBlankOrBreak(Current + 1))) 1721 if (*Current == ':' && (FlowLevel || isBlankOrBreak(Current + 1))) 1724 if (*Current == '*') 1727 if (*Current == '&') 1730 if (*Current == '!') 1733 if (*Current == '|' && !FlowLevel) 1736 if (*Current == '>' && !FlowLevel) 1739 if (*Current == '\'') 1742 if (*Current == '"') 1746 StringRef FirstChar(Current, 1); 1747 if (!(isBlankOrBreak(Current) 1749 || (*Current == '-' && !isBlankOrBreak(Current + 1)) 1749 || (*Current == '-' && !isBlankOrBreak(Current + 1)) 1750 || (!FlowLevel && (*Current == '?' || *Current == ':') 1750 || (!FlowLevel && (*Current == '?' || *Current == ':') 1751 && isBlankOrBreak(Current + 1)) 1752 || (!FlowLevel && *Current == ':' 1753 && Current + 2 < End 1754 && *(Current + 1) == ':' 1755 && !isBlankOrBreak(Current + 2)))