godot/core
Rémi Verschelde cd4e46ee65 SCons: Format buildsystem files with psf/black
Configured for a max line length of 120 characters.

psf/black is very opinionated and purposely doesn't leave much room for
configuration. The output is mostly OK so that should be fine for us,
but some things worth noting:

- Manually wrapped strings will be reflowed, so by using a line length
  of 120 for the sake of preserving readability for our long command
  calls, it also means that some manually wrapped strings are back on
  the same line and should be manually merged again.

- Code generators using string concatenation extensively look awful,
  since black puts each operand on a single line. We need to refactor
  these generators to use more pythonic string formatting, for which
  many options are available (`%`, `format` or f-strings).

- CI checks and a pre-commit hook will be added to ensure that future
  buildsystem changes are well-formatted.
2020-03-30 09:05:53 +02:00
..
bind SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
crypto SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
debugger SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
input SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
io SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
math SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
os SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
array.cpp Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
array.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
callable.cpp Fix C# bindings after recent breaking changes 2020-03-17 16:30:04 +01:00
callable.h Fix C# bindings after recent breaking changes 2020-03-17 16:30:04 +01:00
callable_method_pointer.cpp Created the callable_mp macro, for signals to call method pointers directly. 2020-02-21 13:46:45 +01:00
callable_method_pointer.h callable_mp: Fix non-debug branch 2020-02-23 23:48:44 +01:00
class_db.cpp Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
class_db.h Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
color.cpp Remove deprecated Color::gray 2020-02-12 11:22:33 +01:00
color.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
color_names.inc doc: Document named color constants 2020-01-26 12:08:16 +01:00
command_queue_mt.cpp Drop old semaphore implementation 2020-03-03 13:20:42 +01:00
command_queue_mt.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
compressed_translation.cpp Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
compressed_translation.h PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
core_builders.py SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
core_string_names.cpp Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
core_string_names.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
cowdata.h Ensure COWData does not reallocate on push back, fixes #22561 2020-03-27 21:52:42 -03:00
dictionary.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
dictionary.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
engine.cpp More GIProbe work and fixes 2020-02-11 12:03:49 +01:00
engine.h More GIProbe work and fixes 2020-02-11 12:03:49 +01:00
error_list.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
error_macros.cpp Improve and document error macros 2020-01-24 17:19:57 +01:00
error_macros.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
func_ref.cpp Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
func_ref.h Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
global_constants.cpp Refactored Input, create DisplayServer and DisplayServerX11 2020-03-26 15:49:32 +01:00
global_constants.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
hash_map.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
hashfuncs.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
image.cpp Fix some -Wmaybe-uninitialized warnings 2020-03-27 14:33:06 +01:00
image.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
int_types.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
list.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
make_binders.py SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
map.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
message_queue.cpp Tweak the message queue maximum size property hint 2020-03-24 15:05:07 +01:00
message_queue.h Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
method_bind.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
method_bind.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
method_ptrcall.h Refactored Input, create DisplayServer and DisplayServerX11 2020-03-26 15:49:32 +01:00
node_path.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
node_path.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
oa_hash_map.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
object.cpp Added has_signal method for Object 2020-03-23 11:27:17 +01:00
object.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
object_id.h Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
ordered_hash_map.h Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
packed_data_container.cpp Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT. 2020-02-25 12:55:53 +01:00
packed_data_container.h PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
pair.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
path_remap.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
path_remap.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
pool_allocator.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
pool_allocator.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
print_string.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
print_string.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
project_settings.cpp Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
project_settings.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
reference.cpp Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr. 2020-02-15 08:36:04 -03:00
reference.h Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
register_core_types.cpp Refactored input, goes all via windows now. 2020-03-26 15:49:39 +01:00
register_core_types.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
resource.cpp Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
resource.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
rid.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
rid_owner.cpp Vulkan: Move thirdparty code out of drivers, style fixes 2020-02-11 14:08:44 +01:00
rid_owner.h Compilation fixes on Android 2020-03-04 13:15:37 +01:00
ring_buffer.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
safe_refcount.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
safe_refcount.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
script_language.cpp Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
script_language.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
self_list.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
set.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
simple_type.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
sort_array.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
spin_lock.h Vulkan: Move thirdparty code out of drivers, style fixes 2020-02-11 14:08:44 +01:00
string_buffer.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
string_builder.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
string_builder.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
string_name.cpp Fix shadowed variable build error 2020-02-28 11:02:20 +01:00
string_name.h Fix shadowed variable build error 2020-02-28 11:02:20 +01:00
thread_work_pool.cpp Vulkan: Move thirdparty code out of drivers, style fixes 2020-02-11 14:08:44 +01:00
thread_work_pool.h Fixes some memory leaks 2020-02-13 09:46:13 +08:00
translation.cpp i18n: Add support for translating the class reference 2020-03-20 08:48:11 +01:00
translation.h i18n: Add support for translating the class reference 2020-03-20 08:48:11 +01:00
type_info.h Refactored Input, create DisplayServer and DisplayServerX11 2020-03-26 15:49:32 +01:00
typedefs.h typedefs: Cleanup unused macros and unnecessary checks 2020-03-11 21:44:56 +01:00
ucaps.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
undo_redo.cpp Added StringName as a variant type. 2020-02-21 14:25:29 +01:00
undo_redo.h Added StringName as a variant type. 2020-02-21 14:25:29 +01:00
ustring.cpp i18n: Add support for translating the class reference 2020-03-20 08:48:11 +01:00
ustring.h i18n: Add support for translating the class reference 2020-03-20 08:48:11 +01:00
variant.cpp Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
variant.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
variant_call.cpp Merge pull request #36896 from kuruk-mm/doc_return_variant_2 2020-03-16 19:55:07 +01:00
variant_op.cpp Refactor ScriptDebugger. 2020-03-08 12:36:39 +01:00
variant_parser.cpp Refactored Input, create DisplayServer and DisplayServerX11 2020-03-26 15:49:32 +01:00
variant_parser.h Fixes bugs found by Sonarcloud and Coverity 2020-03-02 19:17:20 +01:00
vector.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
version.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
vmap.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
vset.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00