Merge pull request #36461 from akien-mga/c++17-fallthrough-attribute

Replace FALLTHROUGH macro by C++17 [[fallthrough]]
This commit is contained in:
Rémi Verschelde 2020-02-23 08:43:18 +01:00 committed by GitHub
commit bd10c70458
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 75 additions and 88 deletions

View file

@ -343,7 +343,7 @@ StringName GDScriptTokenizer::get_token_literal(int p_offset) const {
default: {
}
}
}
} break;
case TK_OP_AND:
case TK_OP_OR:
break; // Don't get into default, since they can be non-literal
@ -539,7 +539,7 @@ void GDScriptTokenizerText::_advance() {
ignore_warnings = true;
}
#endif // DEBUG_ENABLED
FALLTHROUGH;
[[fallthrough]];
}
case '\n': {
line++;
@ -756,7 +756,7 @@ void GDScriptTokenizerText::_advance() {
}
INCPOS(1);
is_string_name = true;
FALLTHROUGH;
[[fallthrough]];
case '\'':
case '"': {