Ticket #8476: regex.patch
File regex.patch, 5.1 KB (added by , 10 years ago) |
---|
-
boost/regex/v4/basic_regex_creator.hpp
738 738 case syntax_element_long_set_rep: 739 739 // set the state_id of this repeat: 740 740 static_cast<re_repeat*>(state)->state_id = m_repeater_id++; 741 // fall through:741 BOOST_FALLTHROUGH; 742 742 case syntax_element_alt: 743 743 std::memset(static_cast<re_alt*>(state)->_map, 0, sizeof(static_cast<re_alt*>(state)->_map)); 744 744 static_cast<re_alt*>(state)->can_be_null = 0; 745 // fall through:745 BOOST_FALLTHROUGH; 746 746 case syntax_element_jump: 747 747 static_cast<re_jump*>(state)->alt.p = getaddress(static_cast<re_jump*>(state)->alt.i, state); 748 // fall through again:748 BOOST_FALLTHROUGH; 749 749 default: 750 750 if(state->next.i) 751 751 state->next.p = getaddress(state->next.i, state); … … 877 877 } 878 878 } 879 879 } 880 break; 880 881 default: 881 882 break; 882 883 } … … 941 942 e.raise(); 942 943 } 943 944 } 944 // fall through:945 BOOST_FALLTHROUGH; 945 946 default: 946 947 state = state->next.p; 947 948 } … … 1153 1154 break; 1154 1155 } 1155 1156 m_recursion_checks[recursion_sub] = true; 1156 // fall through, can't handle nested recursion here... 1157 // can't handle nested recursion here... 1158 BOOST_FALLTHROUGH; 1157 1159 } 1158 1160 case syntax_element_backref: 1159 1161 // can be null, and any character can match: 1160 1162 if(pnull) 1161 1163 *pnull |= mask; 1162 // fall through:1164 BOOST_FALLTHROUGH; 1163 1165 case syntax_element_wild: 1164 1166 { 1165 1167 // can't be null, any character can match: … … 1359 1361 state = state->next.p->next.p; 1360 1362 break; 1361 1363 } 1362 // otherwise fall through:1364 BOOST_FALLTHROUGH; 1363 1365 default: 1364 1366 state = state->next.p; 1365 1367 } … … 1456 1458 if(state_id <= sizeof(m_bad_repeats) * CHAR_BIT) 1457 1459 m_bad_repeats |= (one << state_id); 1458 1460 } 1461 break; 1459 1462 default: 1460 1463 break; 1461 1464 } … … 1537 1540 case syntax_element_long_set_rep: 1538 1541 if(this->m_has_backrefs == 0) 1539 1542 static_cast<re_repeat*>(state)->leading = true; 1540 // fall through:1543 BOOST_FALLTHROUGH; 1541 1544 default: 1542 1545 return; 1543 1546 } -
boost/regex/v4/basic_regex_parser.hpp
369 369 while((m_position != m_end) && !is_separator(*m_position++)){} 370 370 return true; 371 371 } 372 // Otherwise fall through:372 BOOST_FALLTHROUGH; 373 373 default: 374 374 result = parse_literal(); 375 375 break; … … 623 623 { 624 624 case 'w': 625 625 negate = false; 626 // fall through:626 BOOST_FALLTHROUGH; 627 627 case 'W': 628 628 { 629 629 basic_char_set<charT, traits> char_set; … … 640 640 } 641 641 case 's': 642 642 negate = false; 643 // fall through:643 BOOST_FALLTHROUGH; 644 644 case 'S': 645 645 return add_emacs_code(negate); 646 646 case 'c': … … 672 672 { 673 673 case regex_constants::escape_type_not_class: 674 674 negate = true; 675 // fall through:675 BOOST_FALLTHROUGH; 676 676 case regex_constants::escape_type_class: 677 677 { 678 678 escape_type_class_jump: … … 742 742 break; 743 743 case regex_constants::escape_type_not_property: 744 744 negate = true; 745 // fall through:745 BOOST_FALLTHROUGH; 746 746 case regex_constants::escape_type_property: 747 747 { 748 748 ++m_position; … … 901 901 case regex_constants::escape_type_control_v: 902 902 if(0 == (this->flags() & (regbase::main_option_type | regbase::no_perl_ex))) 903 903 goto escape_type_class_jump; 904 // fallthrough:904 BOOST_FALLTHROUGH; 905 905 default: 906 906 this->append_literal(unescape_character()); 907 907 break; … … 1959 1959 { 1960 1960 case regex_constants::syntax_or: 1961 1961 m_mark_reset = m_mark_count; 1962 // fall through:1962 BOOST_FALLTHROUGH; 1963 1963 case regex_constants::syntax_colon: 1964 1964 // 1965 1965 // a non-capturing mark: -
boost/regex/v4/regex_format.hpp
283 283 format_perl(); 284 284 break; 285 285 } 286 // fall through, not a special character: 286 // not a special character: 287 BOOST_FALLTHROUGH; 287 288 default: 288 289 put(*m_position); 289 290 ++m_position; … … 354 355 case '{': 355 356 have_brace = true; 356 357 ++m_position; 357 // fall through....358 BOOST_FALLTHROUGH; 358 359 default: 359 360 // see if we have a number: 360 361 {