You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Many fallthrough switch cases now have the FALLTHROUGH macro to tell the compiler that this is intended.
(cherry picked from commit 9f0c6a6009)
This commit is contained in:
committed by
Rémi Verschelde
parent
fc18d637a8
commit
8c2e10c393
@@ -2491,7 +2491,8 @@ Error GDScriptLanguage::complete_code(const String &p_code, const String &p_base
|
||||
} break;
|
||||
case GDScriptParser::COMPLETION_FUNCTION: {
|
||||
is_function = true;
|
||||
} // fallthrough
|
||||
FALLTHROUGH;
|
||||
}
|
||||
case GDScriptParser::COMPLETION_IDENTIFIER: {
|
||||
_find_identifiers(context, is_function, options);
|
||||
} break;
|
||||
@@ -2530,7 +2531,8 @@ Error GDScriptLanguage::complete_code(const String &p_code, const String &p_base
|
||||
} break;
|
||||
case GDScriptParser::COMPLETION_METHOD: {
|
||||
is_function = true;
|
||||
} // fallthrough
|
||||
FALLTHROUGH;
|
||||
}
|
||||
case GDScriptParser::COMPLETION_INDEX: {
|
||||
const GDScriptParser::Node *node = parser.get_completion_node();
|
||||
if (node->type != GDScriptParser::Node::TYPE_OPERATOR) {
|
||||
@@ -3227,7 +3229,8 @@ Error GDScriptLanguage::lookup_code(const String &p_code, const String &p_symbol
|
||||
case GDScriptParser::COMPLETION_PARENT_FUNCTION:
|
||||
case GDScriptParser::COMPLETION_FUNCTION: {
|
||||
is_function = true;
|
||||
} // fallthrough
|
||||
FALLTHROUGH;
|
||||
}
|
||||
case GDScriptParser::COMPLETION_IDENTIFIER: {
|
||||
|
||||
if (!is_function) {
|
||||
@@ -3358,7 +3361,8 @@ Error GDScriptLanguage::lookup_code(const String &p_code, const String &p_symbol
|
||||
} break;
|
||||
case GDScriptParser::COMPLETION_METHOD: {
|
||||
is_function = true;
|
||||
} // fallthrough
|
||||
FALLTHROUGH;
|
||||
}
|
||||
case GDScriptParser::COMPLETION_INDEX: {
|
||||
const GDScriptParser::Node *node = parser.get_completion_node();
|
||||
if (node->type != GDScriptParser::Node::TYPE_OPERATOR) {
|
||||
|
||||
Reference in New Issue
Block a user