1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Style: apply clang-format (3.9.1) to current source

This commit is contained in:
Rémi Verschelde
2017-12-11 15:18:06 +01:00
parent b3a1821b46
commit acb7107720
12 changed files with 44 additions and 44 deletions

View File

@@ -45,33 +45,34 @@ void GDScriptLanguage::get_string_delimiters(List<String> *p_delimiters) const {
}
String GDScriptLanguage::get_template(const String &p_class_name, const String &p_base_class_name) const {
String _template = String() +
"extends %BASE%\n\n" +
"# class member variables go here, for example:\n" +
"# var a = 2\n" +
"# var b = \"textvar\"\n\n" +
"func _ready():\n" +
"\t# Called every time the node is added to the scene.\n" +
"\t# Initialization here\n" +
"\tpass\n";
String _template =
String() +
"extends %BASE%\n\n" +
"# class member variables go here, for example:\n" +
"# var a = 2\n" +
"# var b = \"textvar\"\n\n" +
"func _ready():\n" +
"\t# Called every time the node is added to the scene.\n" +
"\t# Initialization here\n" +
"\tpass\n";
return _template.replace("%BASE%", p_base_class_name);
}
String GDScriptLanguage::get_empty_template(const String &p_class_name, const String &p_base_class_name) const {
String _template = String() +
"extends %BASE%\n\n";
String _template = String() + "extends %BASE%\n\n";
return _template.replace("%BASE%", p_base_class_name);
}
String GDScriptLanguage::get_nocomment_template(const String &p_class_name, const String &p_base_class_name) const {
String _template = String() +
"extends %BASE%\n\n" +
"func _ready():\n" +
"\tpass\n";
String _template =
String() +
"extends %BASE%\n\n" +
"func _ready():\n" +
"\tpass\n";
return _template.replace("%BASE%", p_base_class_name);
}