Skip to content

Commit 35b1ac2

Browse files
authored
Merge branch 'godotengine:master' into master
2 parents 7fe434a + f964fa7 commit 35b1ac2

4,777 files changed

Lines changed: 569821 additions & 239758 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.clang-format

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# If you change this file, please format all files of the codebase as part of your PR:
2-
# pre-commit run clang-format --all
2+
# prek run clang-format --all
33

44
# Commented out parameters are those with the same value as base LLVM style.
55
# We can uncomment them if we want to change their value, or enforce the
@@ -117,14 +117,25 @@ Cpp11BracedListStyle: false
117117
# - BOOST_FOREACH
118118
# IfMacros:
119119
# - KJ_IF_MAYBE
120-
# IncludeBlocks: Preserve
120+
IncludeBlocks: Regroup
121121
IncludeCategories:
122-
- Regex: ^".*"$
123-
Priority: 1
124-
- Regex: ^<.*\.h>$
125-
Priority: 2
122+
- Regex: ^"(core|drivers|editor|main|scene|servers|tests)/.*"$
123+
Priority: 20
124+
- Regex: ^"(modules|platform)/.*"$
125+
Priority: 30
126+
- Regex: ^<thirdparty/.*>$
127+
Priority: 40
128+
- Regex: ^<(windows|Jolt/Jolt|platform_gl)\.h>$
129+
Priority: 50
130+
- Regex: ^<.*\.(h|hpp)>$
131+
Priority: 60
126132
- Regex: ^<.*>$
127-
Priority: 3
133+
Priority: 70
134+
- Regex: ^".*\.compat\.inc"$
135+
Priority: 0
136+
SortPriority: 1
137+
- Regex: ^".*"$
138+
Priority: 10
128139
# IncludeIsMainRegex: (Test)?$
129140
# IncludeIsMainSourceRegex: ""
130141
# IndentAccessModifiers: false

.clang-tidy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# If you change this file, please format all files of the codebase as part of your PR:
2-
# pre-commit run --hook-stage manual clang-tidy --all
2+
# prek run --hook-stage manual clang-tidy --all
33

44
Checks:
55
- -*
6+
- performance-move-const-arg
67
- bugprone-use-after-move
78
- modernize-deprecated-headers
89
- modernize-redundant-void-arg

.clangd

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
# https://clangd.llvm.org/config
2+
23
---
4+
35
# Default conditions, apply everywhere.
46

7+
CompileFlags:
8+
Add:
9+
# Some thirdparty includes seem to require a high -ferror-limit to pass checks.
10+
- -ferror-limit=100
11+
512
Diagnostics:
613
Includes:
714
IgnoreHeader:
815
- \.compat\.inc
16+
917
---
18+
1019
# Header-specific conditions.
1120

1221
If:
@@ -20,11 +29,19 @@ CompileFlags:
2029
- -Wno-unused-const-variable
2130
- -Wno-unused-function
2231
- -Wno-unused-variable
32+
2333
---
24-
# Suppress all third-party warnings.
34+
35+
# Suppress warnings for third-party or partial code.
2536

2637
If:
27-
PathMatch: thirdparty/.*
38+
PathMatch:
39+
- bin/build_deps/.*
40+
- misc/dist/apple_embedded_xcode/.*
41+
- tests/compatibility_test/.*
42+
- thirdparty/.*
43+
- .*/thirdparty/.*
44+
- .*-so_wrap.[ch]
2845

2946
Diagnostics:
3047
Suppress: "*"

.github/CODEOWNERS

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,14 @@
4040
/drivers/vulkan/ @godotengine/rendering
4141

4242
## OS
43+
/drivers/apple/ @godotengine/macos @godotengine/ios
44+
/drivers/apple_embedded/ @godotengine/ios
4345
/drivers/unix/ @godotengine/linux-bsd
4446
/drivers/windows/ @godotengine/windows
4547

4648
## Misc
49+
/drivers/register_driver_types.* @godotengine/buildsystem
50+
/drivers/accesskit/ @godotengine/buildsystem
4751
/drivers/png/ @godotengine/asset-pipeline
4852

4953
# Editor
@@ -54,7 +58,6 @@
5458
/editor/debugger/ @godotengine/editor @godotengine/debugger
5559
/editor/doc/ @godotengine/editor @godotengine/documentation
5660
/editor/gui/ @godotengine/editor @godotengine/gui-nodes
57-
/editor/icons/ @godotengine/editor
5861
/editor/import/ @godotengine/editor @godotengine/asset-pipeline
5962
/editor/scene/2d/ @godotengine/editor @godotengine/2d-nodes
6063
/editor/scene/2d/physics/ @godotengine/editor @godotengine/physics
@@ -111,7 +114,6 @@
111114
/modules/hdr/ @godotengine/asset-pipeline
112115
/modules/jpg/ @godotengine/asset-pipeline
113116
/modules/ktx/ @godotengine/asset-pipeline
114-
/modules/squish/ @godotengine/asset-pipeline
115117
/modules/svg/ @godotengine/asset-pipeline
116118
/modules/tga/ @godotengine/asset-pipeline
117119
/modules/tinyexr/ @godotengine/asset-pipeline
@@ -125,7 +127,6 @@
125127
/modules/multiplayer/ @godotengine/network
126128
/modules/multiplayer/doc_classes/ @godotengine/network @godotengine/documentation
127129
/modules/multiplayer/editor/ @godotengine/network @godotengine/editor
128-
/modules/multiplayer/icons/ @godotengine/network
129130
/modules/multiplayer/tests/ @godotengine/network @godotengine/tests
130131
/modules/upnp/ @godotengine/network
131132
/modules/upnp/doc_classes/ @godotengine/network @godotengine/documentation
@@ -146,20 +147,22 @@
146147
/modules/meshoptimizer/ @godotengine/rendering
147148
/modules/raycast/ @godotengine/rendering
148149
/modules/vhacd/ @godotengine/rendering
150+
/modules/visual_shader/ @godotengine/shaders
151+
/modules/visual_shader/doc_classes/ @godotengine/shaders @godotengine/documentation
152+
/modules/visual_shader/editor/ @godotengine/shaders @godotengine/editor
153+
/modules/visual_shader/tests/ @godotengine/shaders @godotengine/tests
149154
/modules/xatlas_unwrap/ @godotengine/rendering
150155

151156
## Scripting
152157
/modules/gdscript/ @godotengine/gdscript
153158
/modules/gdscript/doc_classes/ @godotengine/gdscript @godotengine/documentation
154159
/modules/gdscript/editor/ @godotengine/gdscript @godotengine/script-editor
155-
/modules/gdscript/icons/ @godotengine/gdscript
156160
/modules/gdscript/tests/ @godotengine/gdscript @godotengine/tests
157161
/modules/jsonrpc/ @godotengine/gdscript @godotengine/network
158162
/modules/jsonrpc/tests/ @godotengine/gdscript @godotengine/network @godotengine/tests
159163
/modules/mono/ @godotengine/dotnet
160164
/modules/mono/doc_classes/ @godotengine/dotnet @godotengine/documentation
161-
/modules/mono/editor/ @godotengine/dotnet @godotengine/script-editor
162-
/modules/mono/icons/ @godotengine/dotnet
165+
/modules/mono/editor/ @godotengine/dotnet @godotengine/editor
163166

164167
## Text
165168
/modules/freetype/ @godotengine/buildsystem
@@ -180,36 +183,35 @@
180183
/modules/webxr/doc_classes/ @godotengine/xr @godotengine/documentation
181184

182185
## Misc
186+
/modules/register_module_types.* @godotengine/buildsystem
183187
/modules/csg/ @godotengine/3d-nodes
184188
/modules/csg/doc_classes/ @godotengine/3d-nodes @godotengine/documentation
185189
/modules/csg/editor/ @godotengine/3d-nodes @godotengine/editor
186-
/modules/csg/icons/ @godotengine/3d-nodes
187190
/modules/csg/tests/ @godotengine/3d-nodes @godotengine/tests
188191
/modules/gridmap/ @godotengine/3d-nodes
189192
/modules/gridmap/doc_classes/ @godotengine/3d-nodes @godotengine/documentation
190193
/modules/gridmap/editor/ @godotengine/3d-nodes @godotengine/editor
191-
/modules/gridmap/icons/ @godotengine/3d-nodes
194+
/modules/gridmap/tests/ @godotengine/3d-nodes @godotengine/tests
192195
/modules/navigation_2d/ @godotengine/navigation
193196
/modules/navigation_2d/editor/ @godotengine/navigation @godotengine/editor
194197
/modules/navigation_3d/ @godotengine/navigation
195198
/modules/navigation_3d/editor/ @godotengine/navigation @godotengine/editor
196199
/modules/noise/ @godotengine/core
197200
/modules/noise/doc_classes/ @godotengine/core @godotengine/documentation
198201
/modules/noise/editor/ @godotengine/core @godotengine/editor
199-
/modules/noise/icons/ @godotengine/core
200202
/modules/noise/tests/ @godotengine/core @godotengine/tests
201203
/modules/objectdb_profiler/ @godotengine/debugger
202204
/modules/objectdb_profiler/editor/ @godotengine/debugger @godotengine/editor
203205
/modules/regex/ @godotengine/core
204206
/modules/regex/doc_classes/ @godotengine/core @godotengine/documentation
205-
/modules/regex/icons/ @godotengine/core
206207
/modules/regex/tests/ @godotengine/core @godotengine/tests
207208
/modules/zip/ @godotengine/core
208209
/modules/zip/doc_classes/ @godotengine/core @godotengine/documentation
209210
/modules/zip/tests/ @godotengine/core @godotengine/tests
210211

211212
# Platform
212213

214+
/platform/register_platform_apis.* @godotengine/buildsystem
213215
/platform/android/ @godotengine/android
214216
/platform/android/doc_classes/ @godotengine/android @godotengine/documentation
215217
/platform/ios/ @godotengine/ios
@@ -218,13 +220,18 @@
218220
/platform/linuxbsd/doc_classes/ @godotengine/linux-bsd @godotengine/documentation
219221
/platform/macos/ @godotengine/macos
220222
/platform/macos/doc_classes/ @godotengine/macos @godotengine/documentation
223+
/platform/visionos/ @godotengine/xr
224+
/platform/visionos/doc_classes/ @godotengine/xr @godotengine/documentation
221225
/platform/web/ @godotengine/web
222226
/platform/web/doc_classes/ @godotengine/web @godotengine/documentation
223227
/platform/windows/ @godotengine/windows
224228
/platform/windows/doc_classes/ @godotengine/windows @godotengine/documentation
225229

226230
# Scene
227231

232+
/scene/property_* @godotengine/buildsystem
233+
/scene/register_scene_types.* @godotengine/buildsystem
234+
/scene/scene_string_names.* @godotengine/buildsystem
228235
/scene/2d/ @godotengine/2d-nodes
229236
/scene/2d/navigation/ @godotengine/2d-nodes @godotengine/navigation
230237
/scene/2d/physics/ @godotengine/2d-nodes @godotengine/physics
@@ -237,24 +244,31 @@
237244
/scene/debugger/ @godotengine/debugger
238245
/scene/gui/ @godotengine/gui-nodes
239246
/scene/main/ @godotengine/core
247+
/scene/resources/* @godotengine/gui-nodes
240248
/scene/resources/2d/ @godotengine/2d-nodes
241249
/scene/resources/2d/skeleton/ @godotengine/2d-nodes @godotengine/animation
242250
/scene/resources/3d/ @godotengine/3d-nodes
243251
/scene/resources/animated* @godotengine/animation
244252
/scene/resources/animation* @godotengine/animation
245253
/scene/resources/audio* @godotengine/audio
254+
/scene/resources/bone* @godotengine/animation
246255
/scene/resources/font* @godotengine/gui-nodes
256+
/scene/resources/physics* @godotengine/physics
247257
/scene/resources/shader* @godotengine/shaders
258+
/scene/resources/skeleton* @godotengine/animation
248259
/scene/resources/text_* @godotengine/gui-nodes
249-
/scene/resources/visual_shader* @godotengine/shaders
250260
/scene/theme/ @godotengine/gui-nodes
251-
/scene/theme/icons/ @godotengine/gui-nodes
252261

253262
# Servers
254263

264+
/servers/nav_heap.* @godotengine/navigation
265+
/servers/register_server_types.* @godotengine/buildsystem
266+
/servers/server_wrap_* @godotengine/buildsystem
255267
/servers/audio/ @godotengine/audio
256268
/servers/camera/ @godotengine/xr
257269
/servers/debugger/ @godotengine/debugger
270+
/servers/display/ @godotengine/rendering
271+
/servers/movie_writer/ @godotengine/rendering
258272
/servers/navigation_2d/ @godotengine/navigation
259273
/servers/navigation_3d/ @godotengine/navigation
260274
/servers/physics_2d/ @godotengine/physics

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
<!--
2-
Please target the `master` branch in priority.
2+
Please target the `master` branch. We will take care of backporting relevant fixes to older versions.
33
4-
Relevant fixes are cherry-picked for stable branches as needed by maintainers.
4+
Before submitting, please read our checklist for contributors:
5+
https://contributing.godotengine.org/en/latest/engine/introduction.html#checklist-for-new-contributors
56
6-
To speed up the contribution process and avoid CI errors, please set up pre-commit hooks locally:
7-
https://contributing.godotengine.org/en/latest/engine/introduction.html#setting-up-a-dev-environment
7+
Use of AI must be disclosed and should include a description of how it was used.
8+
-->
9+
10+
## What problem(s) does this PR solve?
11+
12+
- Closes #
13+
14+
## Additional information
15+
16+
<!--
17+
Provide additional information and explanation of your PR, including areas that you are uncertain of or require special attention from reviewers. For examples, please read our pull request guidelines: https://contributing.godotengine.org/en/latest/pull_requests/pull_request_guidelines.html#explain-your-contributions
818
-->
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: clangd-tidy
2+
description: Setup and run clangd-tidy on relevant files
3+
4+
inputs:
5+
changed-files:
6+
description: A pre-filtered list of changed files.
7+
required: true
8+
type: string
9+
10+
runs:
11+
using: composite
12+
steps:
13+
- name: Setup clangd-tidy
14+
shell: sh
15+
run: |
16+
echo "::group::Prerequisite checks"
17+
if [ ! -f "compile_commands.json" ]; then
18+
echo "::error::clangd-tidy checker requires a compilation database to function"
19+
exit 1
20+
fi
21+
echo "::endgroup::"
22+
23+
echo "::group::Installing clangd-tidy"
24+
# Don't know which python we're using, so just access the global scope.
25+
python -m pip install clangd clangd-tidy clang-tidy==22.1.0
26+
echo "::endgroup::"
27+
28+
echo "::group::Running clangd-tidy"
29+
clangd-tidy ${{ inputs.changed-files }}
30+
echo "::endgroup::"

.github/actions/download-artifact/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
using: composite
1515
steps:
1616
- name: Download Godot Artifact
17-
uses: actions/download-artifact@v4
17+
uses: actions/download-artifact@v8
1818
with:
1919
name: ${{ inputs.name }}
2020
path: ${{ inputs.path }}

.github/actions/godot-cache-restore/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ runs:
1212
using: composite
1313
steps:
1414
- name: Restore default cache
15-
uses: actions/cache/restore@v4
15+
uses: actions/cache/restore@v5
1616
id: cache-ping
1717
with:
1818
path: ${{ inputs.scons-cache }}
@@ -27,7 +27,7 @@ runs:
2727
# This is done after pulling the default cache so that PRs can integrate any potential changes
2828
# from the default branch without conflicting with whatever local changes were already made.
2929
- name: Restore local cache
30-
uses: actions/cache/restore@v4
30+
uses: actions/cache/restore@v5
3131
if: github.ref_name != github.event.repository.default_branch
3232
with:
3333
path: ${{ inputs.scons-cache }}

.github/actions/godot-cache-save/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ runs:
1616
run: misc/scripts/purge_cache.py ${{ env.CACHE_TIMESTAMP }} "${{ inputs.scons-cache }}"
1717

1818
- name: Save SCons cache directory
19-
uses: actions/cache/save@v4
19+
uses: actions/cache/save@v5
2020
with:
2121
path: ${{ inputs.scons-cache }}
2222
key: ${{ inputs.cache-name }}|${{ github.ref_name }}|${{ github.sha }}

.github/actions/godot-cpp-build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ runs:
2222
using: composite
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v6
2626
with:
2727
submodules: recursive
2828
repository: godotengine/godot-cpp

0 commit comments

Comments
 (0)