Style: Apply new clang-format 5.0 style to all files
This commit is contained in:
parent
a8ceb7e3f2
commit
13c2ff9320
199 changed files with 954 additions and 875 deletions
|
|
@ -100,7 +100,7 @@ GDScriptInstance *GDScript::_create_instance(const Variant **p_args, int p_argco
|
|||
#endif
|
||||
instance->owner->set_script_instance(instance);
|
||||
|
||||
/* STEP 2, INITIALIZE AND CONSRTUCT */
|
||||
/* STEP 2, INITIALIZE AND CONSRTUCT */
|
||||
|
||||
#ifndef NO_THREADS
|
||||
GDScriptLanguage::singleton->lock->lock();
|
||||
|
|
@ -876,8 +876,8 @@ void GDScript::get_script_signal_list(List<MethodInfo> *r_signals) const {
|
|||
#endif
|
||||
}
|
||||
|
||||
GDScript::GDScript()
|
||||
: script_list(this) {
|
||||
GDScript::GDScript() :
|
||||
script_list(this) {
|
||||
|
||||
_static_ref = this;
|
||||
valid = false;
|
||||
|
|
|
|||
|
|
@ -806,8 +806,8 @@ int GDScriptCompiler::_parse_expression(CodeGen &codegen, const GDScriptParser::
|
|||
ERR_FAIL_COND_V(on->arguments.size() != 2, -1);
|
||||
|
||||
if (on->arguments[0]->type == GDScriptParser::Node::TYPE_OPERATOR && (static_cast<GDScriptParser::OperatorNode *>(on->arguments[0])->op == GDScriptParser::OperatorNode::OP_INDEX || static_cast<GDScriptParser::OperatorNode *>(on->arguments[0])->op == GDScriptParser::OperatorNode::OP_INDEX_NAMED)) {
|
||||
//SET (chained) MODE!!
|
||||
|
||||
// SET (chained) MODE!
|
||||
#ifdef DEBUG_ENABLED
|
||||
if (static_cast<GDScriptParser::OperatorNode *>(on->arguments[0])->op == GDScriptParser::OperatorNode::OP_INDEX_NAMED) {
|
||||
const GDScriptParser::OperatorNode *inon = static_cast<GDScriptParser::OperatorNode *>(on->arguments[0]);
|
||||
|
|
|
|||
|
|
@ -1795,8 +1795,8 @@ static void _find_type_arguments(GDScriptCompletionContext &context, const GDScr
|
|||
}
|
||||
|
||||
} else {
|
||||
//regular method
|
||||
|
||||
//regular method
|
||||
#if defined(DEBUG_METHODS_ENABLED) && defined(TOOLS_ENABLED)
|
||||
if (p_argidx < m->get_argument_count()) {
|
||||
PropertyInfo pi = m->get_argument_info(p_argidx);
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
|
|||
|
||||
#ifdef DEBUG_ENABLED
|
||||
|
||||
//GDScriptLanguage::get_singleton()->calls++;
|
||||
//GDScriptLanguage::get_singleton()->calls++;
|
||||
|
||||
#endif
|
||||
|
||||
|
|
@ -1432,8 +1432,8 @@ void GDScriptFunction::debug_get_stack_member_state(int p_line, List<Pair<String
|
|||
}
|
||||
}
|
||||
|
||||
GDScriptFunction::GDScriptFunction()
|
||||
: function_list(this) {
|
||||
GDScriptFunction::GDScriptFunction() :
|
||||
function_list(this) {
|
||||
|
||||
_stack_size = 0;
|
||||
_call_size = 0;
|
||||
|
|
|
|||
|
|
@ -253,9 +253,9 @@ bool GDScriptTokenizer::is_token_literal(int p_offset, bool variable_safe) const
|
|||
case TK_BUILT_IN_FUNC:
|
||||
|
||||
case TK_OP_IN:
|
||||
//case TK_OP_NOT:
|
||||
//case TK_OP_OR:
|
||||
//case TK_OP_AND:
|
||||
//case TK_OP_NOT:
|
||||
//case TK_OP_OR:
|
||||
//case TK_OP_AND:
|
||||
|
||||
case TK_PR_CLASS:
|
||||
case TK_PR_CONST:
|
||||
|
|
@ -1125,7 +1125,7 @@ void GDScriptTokenizerText::advance(int p_amount) {
|
|||
_advance();
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define BYTECODE_VERSION 12
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue