Lines Matching refs:t
76 for (auto& t : db.template_param) in print_stack() local
80 for (auto& v : t) in print_stack()
113 const char* t = first; in parse_number() local
114 if (*t == 'n') in parse_number()
115 ++t; in parse_number()
116 if (t != last) in parse_number()
118 if (*t == '0') in parse_number()
120 first = t+1; in parse_number()
122 else if ('1' <= *t && *t <= '9') in parse_number()
124 first = t+1; in parse_number()
183 const char* t = first; in parse_floating_number() local
185 for (; t != last; ++t, ++e) in parse_floating_number()
187 if (!isxdigit(*t)) in parse_floating_number()
189 unsigned d1 = isdigit(*t) ? static_cast<unsigned>(*t - '0') : in parse_floating_number()
190 static_cast<unsigned>(*t - 'a' + 10); in parse_floating_number()
191 ++t; in parse_floating_number()
192 unsigned d0 = isdigit(*t) ? static_cast<unsigned>(*t - '0') : in parse_floating_number()
193 static_cast<unsigned>(*t - 'a' + 10); in parse_floating_number()
196 if (*t == 'E') in parse_floating_number()
206 first = t+1; in parse_floating_number()
223 const char* t = first+1; in parse_source_name() local
225 for (c = *t; isdigit(c); c = *t) in parse_source_name()
228 if (++t == last) in parse_source_name()
231 if (static_cast<size_t>(last - t) >= n) in parse_source_name()
233 typename C::String r(t, n); in parse_source_name()
238 first = t + n; in parse_source_name()
302 const char* t = first+1; in parse_substitution() local
303 if (std::isdigit(*t)) in parse_substitution()
304 sub = static_cast<size_t>(*t - '0'); in parse_substitution()
306 sub = static_cast<size_t>(*t - 'A') + 10; in parse_substitution()
307 for (++t; t != last && (std::isdigit(*t) || std::isupper(*t)); ++t) in parse_substitution()
310 if (std::isdigit(*t)) in parse_substitution()
311 sub += static_cast<size_t>(*t - '0'); in parse_substitution()
313 sub += static_cast<size_t>(*t - 'A') + 10; in parse_substitution()
315 if (t == last || *t != '_') in parse_substitution()
322 first = t+1; in parse_substitution()
458 const char*t = parse_source_name(first+1, last, db); in parse_builtin_type() local
459 if (t != first+1) in parse_builtin_type()
460 first = t; in parse_builtin_type()
556 for (auto& t : db.template_param.back().front()) in parse_template_param() local
557 db.names.push_back(t); in parse_template_param()
569 const char* t = first+1; in parse_template_param() local
570 size_t sub = static_cast<size_t>(*t - '0'); in parse_template_param()
571 for (++t; t != last && isdigit(*t); ++t) in parse_template_param()
574 sub += static_cast<size_t>(*t - '0'); in parse_template_param()
576 if (t == last || *t != '_' || db.template_param.empty()) in parse_template_param()
583 first = t+1; in parse_template_param()
587 db.names.push_back(typename C::String(first, t+1)); in parse_template_param()
588 first = t+1; in parse_template_param()
605 const char* t = parse_type(first+2, last, db); in parse_const_cast_expr() local
606 if (t != first+2) in parse_const_cast_expr()
608 const char* t1 = parse_expression(t, last, db); in parse_const_cast_expr()
609 if (t1 != t) in parse_const_cast_expr()
631 const char* t = parse_type(first+2, last, db); in parse_dynamic_cast_expr() local
632 if (t != first+2) in parse_dynamic_cast_expr()
634 const char* t1 = parse_expression(t, last, db); in parse_dynamic_cast_expr()
635 if (t1 != t) in parse_dynamic_cast_expr()
657 const char* t = parse_type(first+2, last, db); in parse_reinterpret_cast_expr() local
658 if (t != first+2) in parse_reinterpret_cast_expr()
660 const char* t1 = parse_expression(t, last, db); in parse_reinterpret_cast_expr()
661 if (t1 != t) in parse_reinterpret_cast_expr()
683 const char* t = parse_type(first+2, last, db); in parse_static_cast_expr() local
684 if (t != first+2) in parse_static_cast_expr()
686 const char* t1 = parse_expression(t, last, db); in parse_static_cast_expr()
687 if (t1 != t) in parse_static_cast_expr()
709 const char* t = parse_expression(first+2, last, db); in parse_pack_expansion() local
710 if (t != first+2) in parse_pack_expansion()
711 first = t; in parse_pack_expansion()
724 const char* t = parse_type(first+2, last, db); in parse_sizeof_type_expr() local
725 if (t != first+2) in parse_sizeof_type_expr()
730 first = t; in parse_sizeof_type_expr()
744 const char* t = parse_expression(first+2, last, db); in parse_sizeof_expr_expr() local
745 if (t != first+2) in parse_sizeof_expr_expr()
750 first = t; in parse_sizeof_expr_expr()
765 const char* t = parse_template_param(first+2, last, db); in parse_sizeof_param_pack_expr() local
767 if (t != first+2) in parse_sizeof_param_pack_expr()
781 first = t; in parse_sizeof_param_pack_expr()
801 const char* t = parse_cv_qualifiers(first+2, last, cv); in parse_function_param() local
802 const char* t1 = parse_number(t, last); in parse_function_param()
805 db.names.push_back("fp" + typename C::String(t, t1)); in parse_function_param()
816 const char* t = parse_cv_qualifiers(t0, last, cv); in parse_function_param() local
817 const char* t1 = parse_number(t, last); in parse_function_param()
820 db.names.push_back("fp" + typename C::String(t, t1)); in parse_function_param()
837 const char* t = parse_function_param(first+2, last, db); in parse_sizeof_function_param_pack_expr() local
838 if (t != first+2) in parse_sizeof_function_param_pack_expr()
843 first = t; in parse_sizeof_function_param_pack_expr()
858 const char* t; in parse_typeid_expr() local
860 t = parse_expression(first+2, last, db); in parse_typeid_expr()
862 t = parse_type(first+2, last, db); in parse_typeid_expr()
863 if (t != first+2) in parse_typeid_expr()
868 first = t; in parse_typeid_expr()
882 const char* t = parse_expression(first+2, last, db); in parse_throw_expr() local
883 if (t != first+2) in parse_throw_expr()
888 first = t; in parse_throw_expr()
902 const char* t = parse_expression(first+2, last, db); in parse_dot_star_expr() local
903 if (t != first+2) in parse_dot_star_expr()
905 const char* t1 = parse_expression(t, last, db); in parse_dot_star_expr()
906 if (t1 != t) in parse_dot_star_expr()
928 const char* t = parse_source_name(first, last, db); in parse_simple_id() local
929 if (t != first) in parse_simple_id()
931 const char* t1 = parse_template_args(t, last, db); in parse_simple_id()
932 if (t1 != t) in parse_simple_id()
943 first = t; in parse_simple_id()
958 const char* t = first; in parse_unresolved_type() local
964 t = parse_template_param(first, last, db); in parse_unresolved_type()
966 if (t != first && k1 == k0 + 1) in parse_unresolved_type()
969 first = t; in parse_unresolved_type()
979 t = parse_decltype(first, last, db); in parse_unresolved_type()
980 if (t != first) in parse_unresolved_type()
985 first = t; in parse_unresolved_type()
989 t = parse_substitution(first, last, db); in parse_unresolved_type()
990 if (t != first) in parse_unresolved_type()
991 first = t; in parse_unresolved_type()
996 t = parse_unqualified_name(first+2, last, db); in parse_unresolved_type()
997 if (t != first+2) in parse_unresolved_type()
1003 first = t; in parse_unresolved_type()
1022 const char* t = parse_unresolved_type(first, last, db); in parse_destructor_name() local
1023 if (t == first) in parse_destructor_name()
1024 t = parse_simple_id(first, last, db); in parse_destructor_name()
1025 if (t != first) in parse_destructor_name()
1030 first = t; in parse_destructor_name()
1054 const char* t = parse_operator_name(first+2, last, db); in parse_base_unresolved_name() local
1055 if (t != first+2) in parse_base_unresolved_name()
1057 first = parse_template_args(t, last, db); in parse_base_unresolved_name()
1058 if (first != t) in parse_base_unresolved_name()
1070 const char* t = parse_destructor_name(first+2, last, db); in parse_base_unresolved_name() local
1071 if (t != first+2) in parse_base_unresolved_name()
1072 first = t; in parse_base_unresolved_name()
1077 const char* t = parse_simple_id(first, last, db); in parse_base_unresolved_name() local
1078 if (t == first) in parse_base_unresolved_name()
1080 t = parse_operator_name(first, last, db); in parse_base_unresolved_name()
1081 if (t != first) in parse_base_unresolved_name()
1083 first = parse_template_args(t, last, db); in parse_base_unresolved_name()
1084 if (first != t) in parse_base_unresolved_name()
1095 first = t; in parse_base_unresolved_name()
1126 const char* t = first; in parse_unresolved_name() local
1128 if (t[0] == 'g' && t[1] == 's') in parse_unresolved_name()
1131 t += 2; in parse_unresolved_name()
1133 const char* t2 = parse_base_unresolved_name(t, last, db); in parse_unresolved_name()
1134 if (t2 != t) in parse_unresolved_name()
1144 else if (last - t > 2 && t[0] == 's' && t[1] == 'r') in parse_unresolved_name()
1146 if (t[2] == 'N') in parse_unresolved_name()
1148 t += 3; in parse_unresolved_name()
1149 const char* t1 = parse_unresolved_type(t, last, db); in parse_unresolved_name()
1150 if (t1 == t || t1 == last) in parse_unresolved_name()
1152 t = t1; in parse_unresolved_name()
1153 t1 = parse_template_args(t, last, db); in parse_unresolved_name()
1154 if (t1 != t) in parse_unresolved_name()
1161 t = t1; in parse_unresolved_name()
1162 if (t == last) in parse_unresolved_name()
1168 while (*t != 'E') in parse_unresolved_name()
1170 t1 = parse_unresolved_qualifier_level(t, last, db); in parse_unresolved_name()
1171 if (t1 == t || t1 == last || db.names.size() < 2) in parse_unresolved_name()
1176 t = t1; in parse_unresolved_name()
1178 ++t; in parse_unresolved_name()
1179 t1 = parse_base_unresolved_name(t, last, db); in parse_unresolved_name()
1180 if (t1 == t) in parse_unresolved_name()
1195 t += 2; in parse_unresolved_name()
1196 const char* t1 = parse_unresolved_type(t, last, db); in parse_unresolved_name()
1197 if (t1 != t) in parse_unresolved_name()
1199 t = t1; in parse_unresolved_name()
1200 t1 = parse_template_args(t, last, db); in parse_unresolved_name()
1201 if (t1 != t) in parse_unresolved_name()
1208 t = t1; in parse_unresolved_name()
1210 t1 = parse_base_unresolved_name(t, last, db); in parse_unresolved_name()
1211 if (t1 == t) in parse_unresolved_name()
1226 t1 = parse_unresolved_qualifier_level(t, last, db); in parse_unresolved_name()
1227 if (t1 == t || t1 == last) in parse_unresolved_name()
1229 t = t1; in parse_unresolved_name()
1236 while (*t != 'E') in parse_unresolved_name()
1238 t1 = parse_unresolved_qualifier_level(t, last, db); in parse_unresolved_name()
1239 if (t1 == t || t1 == last || db.names.size() < 2) in parse_unresolved_name()
1244 t = t1; in parse_unresolved_name()
1246 ++t; in parse_unresolved_name()
1247 t1 = parse_base_unresolved_name(t, last, db); in parse_unresolved_name()
1248 if (t1 == t) in parse_unresolved_name()
1275 const char* t = parse_expression(first+2, last, db); in parse_dot_expr() local
1276 if (t != first+2) in parse_dot_expr()
1278 const char* t1 = parse_unresolved_name(t, last, db); in parse_dot_expr()
1279 if (t1 != t) in parse_dot_expr()
1301 const char* t = parse_expression(first+2, last, db); in parse_call_expr() local
1302 if (t != first+2) in parse_call_expr()
1304 if (t == last) in parse_call_expr()
1312 while (*t != 'E') in parse_call_expr()
1314 const char* t1 = parse_expression(t, last, db); in parse_call_expr()
1315 if (t1 == t || t1 == last) in parse_call_expr()
1332 t = t1; in parse_call_expr()
1334 ++t; in parse_call_expr()
1338 first = t; in parse_call_expr()
1356 const char* t = first; in parse_new_expr() local
1358 if (t[0] == 'g' && t[1] == 's') in parse_new_expr()
1360 t += 2; in parse_new_expr()
1363 if (t[0] == 'n' && (t[1] == 'w' || t[1] == 'a')) in parse_new_expr()
1365 bool is_array = t[1] == 'a'; in parse_new_expr()
1366 t += 2; in parse_new_expr()
1367 if (t == last) in parse_new_expr()
1371 while (*t != '_') in parse_new_expr()
1373 const char* t1 = parse_expression(t, last, db); in parse_new_expr()
1374 if (t1 == t || t1 == last) in parse_new_expr()
1392 t = t1; in parse_new_expr()
1394 ++t; in parse_new_expr()
1395 const char* t1 = parse_type(t, last, db); in parse_new_expr()
1396 if (t1 == t || t1 == last) in parse_new_expr()
1398 t = t1; in parse_new_expr()
1400 if (last - t >= 3 && t[0] == 'p' && t[1] == 'i') in parse_new_expr()
1402 t += 2; in parse_new_expr()
1405 while (*t != 'E') in parse_new_expr()
1407 t1 = parse_expression(t, last, db); in parse_new_expr()
1408 if (t1 == t || t1 == last) in parse_new_expr()
1425 t = t1; in parse_new_expr()
1428 if (*t != 'E') in parse_new_expr()
1463 first = t+1; in parse_new_expr()
1480 const char* t = parse_type(first+2, last, db); in parse_conversion_expr() local
1482 if (t != first+2 && t != last) in parse_conversion_expr()
1484 if (*t != '_') in parse_conversion_expr()
1486 const char* t1 = parse_expression(t, last, db); in parse_conversion_expr()
1487 if (t1 == t) in parse_conversion_expr()
1489 t = t1; in parse_conversion_expr()
1493 ++t; in parse_conversion_expr()
1494 if (t == last) in parse_conversion_expr()
1496 if (*t == 'E') in parse_conversion_expr()
1501 while (*t != 'E') in parse_conversion_expr()
1503 const char* t1 = parse_expression(t, last, db); in parse_conversion_expr()
1504 if (t1 == t || t1 == last) in parse_conversion_expr()
1521 t = t1; in parse_conversion_expr()
1524 ++t; in parse_conversion_expr()
1531 first = t; in parse_conversion_expr()
1545 const char* t = parse_expression(first+2, last, db); in parse_arrow_expr() local
1546 if (t != first+2) in parse_arrow_expr()
1548 const char* t1 = parse_expression(t, last, db); in parse_arrow_expr()
1549 if (t1 != t) in parse_arrow_expr()
1575 const char* t = first+1; in parse_function_type() local
1576 if (t != last) in parse_function_type()
1579 if (*t == 'Y') in parse_function_type()
1582 if (++t == last) in parse_function_type()
1585 const char* t1 = parse_type(t, last, db); in parse_function_type()
1586 if (t1 != t) in parse_function_type()
1588 t = t1; in parse_function_type()
1593 if (t == last) in parse_function_type()
1598 if (*t == 'E') in parse_function_type()
1600 ++t; in parse_function_type()
1603 if (*t == 'v') in parse_function_type()
1605 ++t; in parse_function_type()
1608 if (*t == 'R' && t+1 != last && t[1] == 'E') in parse_function_type()
1611 ++t; in parse_function_type()
1614 if (*t == 'O' && t+1 != last && t[1] == 'E') in parse_function_type()
1617 ++t; in parse_function_type()
1621 t1 = parse_type(t, last, db); in parse_function_type()
1623 if (t1 == t || t1 == last) in parse_function_type()
1633 t = t1; in parse_function_type()
1649 first = t; in parse_function_type()
1664 const char* t = parse_type(first+1, last, db); in parse_pointer_to_member_type() local
1665 if (t != first+1) in parse_pointer_to_member_type()
1667 const char* t2 = parse_type(t, last, db); in parse_pointer_to_member_type()
1668 if (t2 != t) in parse_pointer_to_member_type()
1703 const char* t = parse_type(first+2, last, db); in parse_array_type() local
1704 if (t != first+2) in parse_array_type()
1711 first = t; in parse_array_type()
1716 const char* t = parse_number(first+1, last); in parse_array_type() local
1717 if (t != last && *t == '_') in parse_array_type()
1719 const char* t2 = parse_type(t+1, last, db); in parse_array_type()
1720 if (t2 != t+1) in parse_array_type()
1726 db.names.back().second.insert(0, " [" + typename C::String(first+1, t) + "]"); in parse_array_type()
1733 const char* t = parse_expression(first+1, last, db); in parse_array_type() local
1734 if (t != first+1 && t != last && *t == '_') in parse_array_type()
1736 const char* t2 = parse_type(++t, last, db); in parse_array_type()
1737 if (t2 != t) in parse_array_type()
1770 const char* t = parse_expression(first+2, last, db); in parse_decltype() local
1771 if (t != first+2 && t != last && *t == 'E') in parse_decltype()
1776 first = t+1; in parse_decltype()
1800 const char* t = parse_number(first+2, last); in parse_vector_type() local
1801 if (t == last || *t != '_') in parse_vector_type()
1804 size_t sz = static_cast<size_t>(t - num); in parse_vector_type()
1805 if (++t != last) in parse_vector_type()
1807 if (*t != 'p') in parse_vector_type()
1809 const char* t1 = parse_type(t, last, db); in parse_vector_type()
1810 if (t1 != t) in parse_vector_type()
1820 ++t; in parse_vector_type()
1822 first = t; in parse_vector_type()
1832 const char* t = parse_expression(t1, last, db); in parse_vector_type() local
1833 if (t != t1) in parse_vector_type()
1839 t1 = t; in parse_vector_type()
1844 const char* t = parse_type(t1, last, db); in parse_vector_type() local
1845 if (t != t1) in parse_vector_type()
1850 first = t; in parse_vector_type()
1894 const char* t = parse_cv_qualifiers(first, last, cv); in parse_type() local
1895 if (t != first) in parse_type()
1897 bool is_function = *t == 'F'; in parse_type()
1899 const char* t1 = parse_type(t, last, db); in parse_type()
1901 if (t1 != t) in parse_type()
1946 const char* t = parse_builtin_type(first, last, db); in parse_type() local
1947 if (t != first) in parse_type()
1949 first = t; in parse_type()
1956 t = parse_array_type(first, last, db); in parse_type()
1957 if (t != first) in parse_type()
1961 first = t; in parse_type()
1966 t = parse_type(first+1, last, db); in parse_type()
1967 if (t != first+1) in parse_type()
1972 first = t; in parse_type()
1977 t = parse_function_type(first, last, db); in parse_type()
1978 if (t != first) in parse_type()
1982 first = t; in parse_type()
1987 t = parse_type(first+1, last, db); in parse_type()
1988 if (t != first+1) in parse_type()
1993 first = t; in parse_type()
1998 t = parse_pointer_to_member_type(first, last, db); in parse_type()
1999 if (t != first) in parse_type()
2003 first = t; in parse_type()
2010 t = parse_type(first+1, last, db); in parse_type()
2012 if (t != first+1) in parse_type()
2030 first = t; in parse_type()
2037 t = parse_type(first+1, last, db); in parse_type()
2039 if (t != first+1) in parse_type()
2064 first = t; in parse_type()
2071 t = parse_type(first+1, last, db); in parse_type()
2073 if (t != first+1) in parse_type()
2091 first = t; in parse_type()
2098 t = parse_template_param(first, last, db); in parse_type()
2100 if (t != first) in parse_type()
2107 const char* t1 = parse_template_args(t, last, db); in parse_type()
2108 if (t1 != t) in parse_type()
2114 t = t1; in parse_type()
2117 first = t; in parse_type()
2124 t = parse_source_name(first+1, last, db); in parse_type()
2125 if (t != first+1) in parse_type()
2127 const char* t2 = parse_type(t, last, db); in parse_type()
2128 if (t2 != t) in parse_type()
2142 … t = parse_source_name(proto.data() + 9, proto.data() + proto.size(), db); in parse_type()
2143 if (t != proto.data() + 9) in parse_type()
2161 t = parse_name(first, last, db); in parse_type()
2162 if (t != first) in parse_type()
2167 first = t; in parse_type()
2172 t = parse_substitution(first, last, db); in parse_type()
2173 if (t != first) in parse_type()
2175 first = t; in parse_type()
2178 t = parse_template_args(first, last, db); in parse_type()
2179 if (t != first) in parse_type()
2188 first = t; in parse_type()
2201 t = parse_type(first+2, last, db); in parse_type()
2203 if (t != first+2) in parse_type()
2208 first = t; in parse_type()
2215 t = parse_decltype(first, last, db); in parse_type()
2216 if (t != first) in parse_type()
2221 first = t; in parse_type()
2226 t = parse_vector_type(first, last, db); in parse_type()
2227 if (t != first) in parse_type()
2232 first = t; in parse_type()
2242 t = parse_builtin_type(first, last, db); in parse_type()
2243 if (t != first) in parse_type()
2245 first = t; in parse_type()
2249 t = parse_name(first, last, db); in parse_type()
2250 if (t != first) in parse_type()
2255 first = t; in parse_type()
2369 const char* t = parse_type(first+2, last, db); in parse_operator_name() local
2371 if (t != first+2) in parse_operator_name()
2377 first = t; in parse_operator_name()
2454 const char* t = parse_source_name(first+2, last, db); in parse_operator_name() local
2455 if (t != first+2) in parse_operator_name()
2460 first = t; in parse_operator_name()
2605 const char* t = parse_source_name(first+2, last, db); in parse_operator_name() local
2606 if (t != first+2) in parse_operator_name()
2611 first = t; in parse_operator_name()
2624 const char* t = parse_number(first, last); in parse_integer_literal() local
2625 if (t != first && t != last && *t == 'E') in parse_integer_literal()
2636 db.names.back().first.append(first, t); in parse_integer_literal()
2639 first = t+1; in parse_integer_literal()
2661 const char* t = parse_integer_literal(first+2, last, "wchar_t", db); in parse_expr_primary() local
2662 if (t != first+2) in parse_expr_primary()
2663 first = t; in parse_expr_primary()
2684 const char* t = parse_integer_literal(first+2, last, "char", db); in parse_expr_primary() local
2685 if (t != first+2) in parse_expr_primary()
2686 first = t; in parse_expr_primary()
2691 const char* t = parse_integer_literal(first+2, last, "signed char", db); in parse_expr_primary() local
2692 if (t != first+2) in parse_expr_primary()
2693 first = t; in parse_expr_primary()
2698 const char* t = parse_integer_literal(first+2, last, "unsigned char", db); in parse_expr_primary() local
2699 if (t != first+2) in parse_expr_primary()
2700 first = t; in parse_expr_primary()
2705 const char* t = parse_integer_literal(first+2, last, "short", db); in parse_expr_primary() local
2706 if (t != first+2) in parse_expr_primary()
2707 first = t; in parse_expr_primary()
2712 const char* t = parse_integer_literal(first+2, last, "unsigned short", db); in parse_expr_primary() local
2713 if (t != first+2) in parse_expr_primary()
2714 first = t; in parse_expr_primary()
2719 const char* t = parse_integer_literal(first+2, last, "", db); in parse_expr_primary() local
2720 if (t != first+2) in parse_expr_primary()
2721 first = t; in parse_expr_primary()
2726 const char* t = parse_integer_literal(first+2, last, "u", db); in parse_expr_primary() local
2727 if (t != first+2) in parse_expr_primary()
2728 first = t; in parse_expr_primary()
2733 const char* t = parse_integer_literal(first+2, last, "l", db); in parse_expr_primary() local
2734 if (t != first+2) in parse_expr_primary()
2735 first = t; in parse_expr_primary()
2740 const char* t = parse_integer_literal(first+2, last, "ul", db); in parse_expr_primary() local
2741 if (t != first+2) in parse_expr_primary()
2742 first = t; in parse_expr_primary()
2747 const char* t = parse_integer_literal(first+2, last, "ll", db); in parse_expr_primary() local
2748 if (t != first+2) in parse_expr_primary()
2749 first = t; in parse_expr_primary()
2754 const char* t = parse_integer_literal(first+2, last, "ull", db); in parse_expr_primary() local
2755 if (t != first+2) in parse_expr_primary()
2756 first = t; in parse_expr_primary()
2761 const char* t = parse_integer_literal(first+2, last, "__int128", db); in parse_expr_primary() local
2762 if (t != first+2) in parse_expr_primary()
2763 first = t; in parse_expr_primary()
2768 const char* t = parse_integer_literal(first+2, last, "unsigned __int128", db); in parse_expr_primary() local
2769 if (t != first+2) in parse_expr_primary()
2770 first = t; in parse_expr_primary()
2775 const char* t = parse_floating_number<float>(first+2, last, db); in parse_expr_primary() local
2776 if (t != first+2) in parse_expr_primary()
2777 first = t; in parse_expr_primary()
2782 const char* t = parse_floating_number<double>(first+2, last, db); in parse_expr_primary() local
2783 if (t != first+2) in parse_expr_primary()
2784 first = t; in parse_expr_primary()
2789 const char* t = parse_floating_number<long double>(first+2, last, db); in parse_expr_primary() local
2790 if (t != first+2) in parse_expr_primary()
2791 first = t; in parse_expr_primary()
2797 const char* t = parse_encoding(first+3, last, db); in parse_expr_primary() local
2798 if (t != first+3 && t != last && *t == 'E') in parse_expr_primary()
2799 first = t+1; in parse_expr_primary()
2809 const char* t = parse_type(first+1, last, db); in parse_expr_primary() local
2810 if (t != first+1 && t != last) in parse_expr_primary()
2812 if (*t != 'E') in parse_expr_primary()
2814 const char* n = t; in parse_expr_primary()
2817 if (n != t && n != last && *n == 'E') in parse_expr_primary()
2821 … db.names.back() = "(" + db.names.back().move_full() + ")" + typename C::String(t, n); in parse_expr_primary()
2828 first = t+1; in parse_expr_primary()
3075 const char* t; in parse_unqualified_name() local
3080 t = parse_ctor_dtor_name(first, last, db); in parse_unqualified_name()
3081 if (t != first) in parse_unqualified_name()
3082 first = t; in parse_unqualified_name()
3085 t = parse_unnamed_type_name(first, last, db); in parse_unqualified_name()
3086 if (t != first) in parse_unqualified_name()
3087 first = t; in parse_unqualified_name()
3098 t = parse_source_name(first, last, db); in parse_unqualified_name()
3099 if (t != first) in parse_unqualified_name()
3100 first = t; in parse_unqualified_name()
3103 t = parse_operator_name(first, last, db); in parse_unqualified_name()
3104 if (t != first) in parse_unqualified_name()
3105 first = t; in parse_unqualified_name()
3154 const char* t = parse_type(first+2, last, db); in parse_alignof_type() local
3155 if (t != first+2) in parse_alignof_type()
3160 first = t; in parse_alignof_type()
3174 const char* t = parse_expression(first+2, last, db); in parse_alignof_expr() local
3175 if (t != first+2) in parse_alignof_expr()
3180 first = t; in parse_alignof_expr()
3292 const char* t = first; in parse_expression() local
3294 if (last - first >= 4 && t[0] == 'g' && t[1] == 's') in parse_expression()
3296 t += 2; in parse_expression()
3299 switch (*t) in parse_expression()
3311 switch (t[1]) in parse_expression()
3314 t = parse_binary_expression(first+2, last, "&&", db); in parse_expression()
3315 if (t != first+2) in parse_expression()
3316 first = t; in parse_expression()
3319 t = parse_prefix_expression(first+2, last, "&", db); in parse_expression()
3320 if (t != first+2) in parse_expression()
3321 first = t; in parse_expression()
3324 t = parse_binary_expression(first+2, last, "&", db); in parse_expression()
3325 if (t != first+2) in parse_expression()
3326 first = t; in parse_expression()
3329 t = parse_binary_expression(first+2, last, "&=", db); in parse_expression()
3330 if (t != first+2) in parse_expression()
3331 first = t; in parse_expression()
3334 t = parse_binary_expression(first+2, last, "=", db); in parse_expression()
3335 if (t != first+2) in parse_expression()
3336 first = t; in parse_expression()
3347 switch (t[1]) in parse_expression()
3356 t = parse_binary_expression(first+2, last, ",", db); in parse_expression()
3357 if (t != first+2) in parse_expression()
3358 first = t; in parse_expression()
3361 t = parse_prefix_expression(first+2, last, "~", db); in parse_expression()
3362 if (t != first+2) in parse_expression()
3363 first = t; in parse_expression()
3371 switch (t[1]) in parse_expression()
3375 const char* t1 = parse_expression(t+2, last, db); in parse_expression()
3376 if (t1 != t+2) in parse_expression()
3390 t = parse_prefix_expression(first+2, last, "*", db); in parse_expression()
3391 if (t != first+2) in parse_expression()
3392 first = t; in parse_expression()
3396 const char* t1 = parse_expression(t+2, last, db); in parse_expression()
3397 if (t1 != t+2) in parse_expression()
3416 t = parse_binary_expression(first+2, last, "/", db); in parse_expression()
3417 if (t != first+2) in parse_expression()
3418 first = t; in parse_expression()
3421 t = parse_binary_expression(first+2, last, "/=", db); in parse_expression()
3422 if (t != first+2) in parse_expression()
3423 first = t; in parse_expression()
3428 switch (t[1]) in parse_expression()
3431 t = parse_binary_expression(first+2, last, "^", db); in parse_expression()
3432 if (t != first+2) in parse_expression()
3433 first = t; in parse_expression()
3436 t = parse_binary_expression(first+2, last, "^=", db); in parse_expression()
3437 if (t != first+2) in parse_expression()
3438 first = t; in parse_expression()
3441 t = parse_binary_expression(first+2, last, "==", db); in parse_expression()
3442 if (t != first+2) in parse_expression()
3443 first = t; in parse_expression()
3448 switch (t[1]) in parse_expression()
3451 t = parse_binary_expression(first+2, last, ">=", db); in parse_expression()
3452 if (t != first+2) in parse_expression()
3453 first = t; in parse_expression()
3456 t = parse_binary_expression(first+2, last, ">", db); in parse_expression()
3457 if (t != first+2) in parse_expression()
3458 first = t; in parse_expression()
3463 if (t[1] == 'x') in parse_expression()
3485 switch (t[1]) in parse_expression()
3488 t = parse_binary_expression(first+2, last, "<=", db); in parse_expression()
3489 if (t != first+2) in parse_expression()
3490 first = t; in parse_expression()
3493 t = parse_binary_expression(first+2, last, "<<", db); in parse_expression()
3494 if (t != first+2) in parse_expression()
3495 first = t; in parse_expression()
3498 t = parse_binary_expression(first+2, last, "<<=", db); in parse_expression()
3499 if (t != first+2) in parse_expression()
3500 first = t; in parse_expression()
3503 t = parse_binary_expression(first+2, last, "<", db); in parse_expression()
3504 if (t != first+2) in parse_expression()
3505 first = t; in parse_expression()
3510 switch (t[1]) in parse_expression()
3513 t = parse_binary_expression(first+2, last, "-", db); in parse_expression()
3514 if (t != first+2) in parse_expression()
3515 first = t; in parse_expression()
3518 t = parse_binary_expression(first+2, last, "-=", db); in parse_expression()
3519 if (t != first+2) in parse_expression()
3520 first = t; in parse_expression()
3523 t = parse_binary_expression(first+2, last, "*", db); in parse_expression()
3524 if (t != first+2) in parse_expression()
3525 first = t; in parse_expression()
3528 t = parse_binary_expression(first+2, last, "*=", db); in parse_expression()
3529 if (t != first+2) in parse_expression()
3530 first = t; in parse_expression()
3535 t = parse_prefix_expression(first+3, last, "--", db); in parse_expression()
3536 if (t != first+3) in parse_expression()
3537 first = t; in parse_expression()
3554 switch (t[1]) in parse_expression()
3561 t = parse_binary_expression(first+2, last, "!=", db); in parse_expression()
3562 if (t != first+2) in parse_expression()
3563 first = t; in parse_expression()
3566 t = parse_prefix_expression(first+2, last, "-", db); in parse_expression()
3567 if (t != first+2) in parse_expression()
3568 first = t; in parse_expression()
3571 t = parse_prefix_expression(first+2, last, "!", db); in parse_expression()
3572 if (t != first+2) in parse_expression()
3573 first = t; in parse_expression()
3576 t = parse_noexcept_expression(first+2, last, db); in parse_expression()
3577 if (t != first+2) in parse_expression()
3578 first = t; in parse_expression()
3583 switch (t[1]) in parse_expression()
3588 t = parse_binary_expression(first+2, last, "||", db); in parse_expression()
3589 if (t != first+2) in parse_expression()
3590 first = t; in parse_expression()
3593 t = parse_binary_expression(first+2, last, "|", db); in parse_expression()
3594 if (t != first+2) in parse_expression()
3595 first = t; in parse_expression()
3598 t = parse_binary_expression(first+2, last, "|=", db); in parse_expression()
3599 if (t != first+2) in parse_expression()
3600 first = t; in parse_expression()
3605 switch (t[1]) in parse_expression()
3608 t = parse_binary_expression(first+2, last, "->*", db); in parse_expression()
3609 if (t != first+2) in parse_expression()
3610 first = t; in parse_expression()
3613 t = parse_binary_expression(first+2, last, "+", db); in parse_expression()
3614 if (t != first+2) in parse_expression()
3615 first = t; in parse_expression()
3618 t = parse_binary_expression(first+2, last, "+=", db); in parse_expression()
3619 if (t != first+2) in parse_expression()
3620 first = t; in parse_expression()
3625 t = parse_prefix_expression(first+3, last, "++", db); in parse_expression()
3626 if (t != first+3) in parse_expression()
3627 first = t; in parse_expression()
3642 t = parse_prefix_expression(first+2, last, "+", db); in parse_expression()
3643 if (t != first+2) in parse_expression()
3644 first = t; in parse_expression()
3652 if (t[1] == 'u') in parse_expression()
3685 switch (t[1]) in parse_expression()
3691 t = parse_binary_expression(first+2, last, "%", db); in parse_expression()
3692 if (t != first+2) in parse_expression()
3693 first = t; in parse_expression()
3696 t = parse_binary_expression(first+2, last, "%=", db); in parse_expression()
3697 if (t != first+2) in parse_expression()
3698 first = t; in parse_expression()
3701 t = parse_binary_expression(first+2, last, ">>", db); in parse_expression()
3702 if (t != first+2) in parse_expression()
3703 first = t; in parse_expression()
3706 t = parse_binary_expression(first+2, last, ">>=", db); in parse_expression()
3707 if (t != first+2) in parse_expression()
3708 first = t; in parse_expression()
3713 switch (t[1]) in parse_expression()
3730 if (last - t >= 3) in parse_expression()
3732 switch (t[2]) in parse_expression()
3746 switch (t[1]) in parse_expression()
3788 const char* t; in parse_template_arg() local
3792 t = parse_expression(first+1, last, db); in parse_template_arg()
3793 if (t != first+1) in parse_template_arg()
3795 if (t != last && *t == 'E') in parse_template_arg()
3796 first = t+1; in parse_template_arg()
3800 t = first+1; in parse_template_arg()
3801 if (t == last) in parse_template_arg()
3803 while (*t != 'E') in parse_template_arg()
3805 const char* t1 = parse_template_arg(t, last, db); in parse_template_arg()
3806 if (t1 == t) in parse_template_arg()
3808 t = t1; in parse_template_arg()
3810 first = t+1; in parse_template_arg()
3816 t = parse_encoding(first+2, last, db); in parse_template_arg()
3817 if (t != first+2 && t != last && *t == 'E') in parse_template_arg()
3818 first = t+1; in parse_template_arg()
3843 const char* t = first+1; in parse_template_args() local
3845 while (*t != 'E') in parse_template_args()
3850 const char* t1 = parse_template_arg(t, last, db); in parse_template_args()
3854 if (t1 == t || t1 == last) in parse_template_args()
3870 t = t1; in parse_template_args()
3872 first = t + 1; in parse_template_args()
4092 const char* t = parse_encoding(first+1, last, db); in parse_local_name() local
4093 if (t != first+1 && t != last && *t == 'E' && ++t != last) in parse_local_name()
4095 switch (*t) in parse_local_name()
4098 first = parse_discriminator(t+1, last); in parse_local_name()
4104 if (++t != last) in parse_local_name()
4106 const char* t1 = parse_number(t, last); in parse_local_name()
4109 t = t1 + 1; in parse_local_name()
4110 t1 = parse_name(t, last, db, in parse_local_name()
4112 if (t1 != t) in parse_local_name()
4129 const char* t1 = parse_name(t, last, db, in parse_local_name()
4131 if (t1 != t) in parse_local_name()
4261 const char* t = parse_number(first + 1, last); in parse_call_offset() local
4262 if (t != first + 1 && t != last && *t == '_') in parse_call_offset()
4263 first = t + 1; in parse_call_offset()
4268 const char* t = parse_number(first + 1, last); in parse_call_offset() local
4269 if (t != first + 1 && t != last && *t == '_') in parse_call_offset()
4271 const char* t2 = parse_number(++t, last); in parse_call_offset()
4272 if (t2 != t && t2 != last && *t2 == '_') in parse_call_offset()
4303 const char* t; in parse_special_name() local
4311 t = parse_type(first+2, last, db); in parse_special_name()
4312 if (t != first+2) in parse_special_name()
4317 first = t; in parse_special_name()
4322 t = parse_type(first+2, last, db); in parse_special_name()
4323 if (t != first+2) in parse_special_name()
4328 first = t; in parse_special_name()
4333 t = parse_type(first+2, last, db); in parse_special_name()
4334 if (t != first+2) in parse_special_name()
4339 first = t; in parse_special_name()
4344 t = parse_type(first+2, last, db); in parse_special_name()
4345 if (t != first+2) in parse_special_name()
4350 first = t; in parse_special_name()
4362 t = parse_encoding(t1, last, db); in parse_special_name()
4363 if (t != t1) in parse_special_name()
4368 first = t; in parse_special_name()
4374 t = parse_type(first+2, last, db); in parse_special_name()
4375 if (t != first+2) in parse_special_name()
4377 const char* t0 = parse_number(t, last); in parse_special_name()
4378 if (t0 != t && t0 != last && *t0 == '_') in parse_special_name()
4401 t = parse_encoding(t0, last, db); in parse_special_name()
4402 if (t != t0) in parse_special_name()
4409 first = t; in parse_special_name()
4414 first = t; in parse_special_name()
4426 t = parse_name(first+2, last, db); in parse_special_name()
4427 if (t != first+2) in parse_special_name()
4432 first = t; in parse_special_name()
4437 t = parse_name(first+2, last, db); in parse_special_name()
4438 if (t != first+2) in parse_special_name()
4443 first = t; in parse_special_name()
4497 const char* t = parse_name(first, last, db, in parse_encoding() local
4501 if (t != first) in parse_encoding()
4503 if (t != last && *t != 'E' && *t != '.') in parse_encoding()
4516 t2 = parse_type(t, last, db); in parse_encoding()
4517 if (t2 == t) in parse_encoding()
4527 t = t2; in parse_encoding()
4530 if (t != last && *t == 'v') in parse_encoding()
4532 ++t; in parse_encoding()
4540 t2 = parse_type(t, last, db); in parse_encoding()
4542 if (t2 == t) in parse_encoding()
4566 t = t2; in parse_encoding()
4583 first = t; in parse_encoding()
4586 first = t; in parse_encoding()
4606 const char* t = first; in parse_block_invoke() local
4607 for (int i = 0; i < 13; ++i, ++t) in parse_block_invoke()
4609 if (*t != test[i]) in parse_block_invoke()
4612 if (t != last) in parse_block_invoke()
4614 if (*t == '_') in parse_block_invoke()
4617 if (++t == last || !std::isdigit(*t)) in parse_block_invoke()
4619 ++t; in parse_block_invoke()
4622 while (t != last && isdigit(*t)) in parse_block_invoke()
4623 ++t; in parse_block_invoke()
4628 first = t; in parse_block_invoke()
4671 const char* t = parse_encoding(first+2, last, db); in demangle() local
4672 if (t != first+2 && t != last && *t == '.') in demangle()
4673 t = parse_dot_suffix(t, last, db); in demangle()
4674 if (t != last) in demangle()
4679 const char* t = parse_encoding(first+4, last, db); in demangle() local
4680 if (t != first+4 && t != last) in demangle()
4682 const char* t1 = parse_block_invoke(t, last, db); in demangle()
4697 const char* t = parse_type(first, last, db); in demangle() local
4698 if (t != last) in demangle()