You've already forked godot
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user