-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git subrepo clone (merge) --branch=4.2 --force https://github.com/god…
…otengine/godot-cpp thirdparty/godot-cpp subrepo: subdir: "thirdparty/godot-cpp" merged: "9da6ecd1" upstream: origin: "https://github.com/godotengine/godot-cpp" branch: "4.2" commit: "9da6ecd1" git-subrepo: version: "0.4.6" origin: "https://github.com/Homebrew/brew" commit: "1c98a33a37"
- Loading branch information
Showing
163 changed files
with
322,507 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,199 @@ | ||
# Commented out parameters are those with the same value as base LLVM style. | ||
# We can uncomment them if we want to change their value, or enforce the | ||
# chosen value in case the base style changes (last sync: Clang 14.0). | ||
--- | ||
### General config, applies to all languages ### | ||
BasedOnStyle: LLVM | ||
AccessModifierOffset: -4 | ||
AlignAfterOpenBracket: DontAlign | ||
# AlignArrayOfStructures: None | ||
# AlignConsecutiveMacros: None | ||
# AlignConsecutiveAssignments: None | ||
# AlignConsecutiveBitFields: None | ||
# AlignConsecutiveDeclarations: None | ||
# AlignEscapedNewlines: Right | ||
AlignOperands: DontAlign | ||
AlignTrailingComments: false | ||
# AllowAllArgumentsOnNextLine: true | ||
AllowAllParametersOfDeclarationOnNextLine: false | ||
# AllowShortEnumsOnASingleLine: true | ||
# AllowShortBlocksOnASingleLine: Never | ||
# AllowShortCaseLabelsOnASingleLine: false | ||
# AllowShortFunctionsOnASingleLine: All | ||
# AllowShortLambdasOnASingleLine: All | ||
# AllowShortIfStatementsOnASingleLine: Never | ||
# AllowShortLoopsOnASingleLine: false | ||
# AlwaysBreakAfterDefinitionReturnType: None | ||
# AlwaysBreakAfterReturnType: None | ||
# AlwaysBreakBeforeMultilineStrings: false | ||
# AlwaysBreakTemplateDeclarations: MultiLine | ||
# AttributeMacros: | ||
# - __capability | ||
# BinPackArguments: true | ||
# BinPackParameters: true | ||
# BraceWrapping: | ||
# AfterCaseLabel: false | ||
# AfterClass: false | ||
# AfterControlStatement: Never | ||
# AfterEnum: false | ||
# AfterFunction: false | ||
# AfterNamespace: false | ||
# AfterObjCDeclaration: false | ||
# AfterStruct: false | ||
# AfterUnion: false | ||
# AfterExternBlock: false | ||
# BeforeCatch: false | ||
# BeforeElse: false | ||
# BeforeLambdaBody: false | ||
# BeforeWhile: false | ||
# IndentBraces: false | ||
# SplitEmptyFunction: true | ||
# SplitEmptyRecord: true | ||
# SplitEmptyNamespace: true | ||
# BreakBeforeBinaryOperators: None | ||
# BreakBeforeConceptDeclarations: true | ||
# BreakBeforeBraces: Attach | ||
# BreakBeforeInheritanceComma: false | ||
# BreakInheritanceList: BeforeColon | ||
# BreakBeforeTernaryOperators: true | ||
# BreakConstructorInitializersBeforeComma: false | ||
BreakConstructorInitializers: AfterColon | ||
# BreakStringLiterals: true | ||
ColumnLimit: 0 | ||
# CommentPragmas: '^ IWYU pragma:' | ||
# QualifierAlignment: Leave | ||
# CompactNamespaces: false | ||
ConstructorInitializerIndentWidth: 8 | ||
ContinuationIndentWidth: 8 | ||
Cpp11BracedListStyle: false | ||
# DeriveLineEnding: true | ||
# DerivePointerAlignment: false | ||
# DisableFormat: false | ||
# EmptyLineAfterAccessModifier: Never | ||
# EmptyLineBeforeAccessModifier: LogicalBlock | ||
# ExperimentalAutoDetectBinPacking: false | ||
# PackConstructorInitializers: BinPack | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: true | ||
# AllowAllConstructorInitializersOnNextLine: true | ||
# FixNamespaceComments: true | ||
# ForEachMacros: | ||
# - foreach | ||
# - Q_FOREACH | ||
# - BOOST_FOREACH | ||
# IfMacros: | ||
# - KJ_IF_MAYBE | ||
# IncludeBlocks: Preserve | ||
IncludeCategories: | ||
- Regex: '".*"' | ||
Priority: 1 | ||
- Regex: '^<.*\.h>' | ||
Priority: 2 | ||
- Regex: '^<.*' | ||
Priority: 3 | ||
# IncludeIsMainRegex: '(Test)?$' | ||
# IncludeIsMainSourceRegex: '' | ||
# IndentAccessModifiers: false | ||
IndentCaseLabels: true | ||
# IndentCaseBlocks: false | ||
# IndentGotoLabels: true | ||
# IndentPPDirectives: None | ||
# IndentExternBlock: AfterExternBlock | ||
# IndentRequires: false | ||
IndentWidth: 4 | ||
# IndentWrappedFunctionNames: false | ||
# InsertTrailingCommas: None | ||
# JavaScriptQuotes: Leave | ||
# JavaScriptWrapImports: true | ||
KeepEmptyLinesAtTheStartOfBlocks: false | ||
# LambdaBodyIndentation: Signature | ||
# MacroBlockBegin: '' | ||
# MacroBlockEnd: '' | ||
# MaxEmptyLinesToKeep: 1 | ||
# NamespaceIndentation: None | ||
# PenaltyBreakAssignment: 2 | ||
# PenaltyBreakBeforeFirstCallParameter: 19 | ||
# PenaltyBreakComment: 300 | ||
# PenaltyBreakFirstLessLess: 120 | ||
# PenaltyBreakOpenParenthesis: 0 | ||
# PenaltyBreakString: 1000 | ||
# PenaltyBreakTemplateDeclaration: 10 | ||
# PenaltyExcessCharacter: 1000000 | ||
# PenaltyReturnTypeOnItsOwnLine: 60 | ||
# PenaltyIndentedWhitespace: 0 | ||
# PointerAlignment: Right | ||
# PPIndentWidth: -1 | ||
# ReferenceAlignment: Pointer | ||
# ReflowComments: true | ||
# RemoveBracesLLVM: false | ||
# SeparateDefinitionBlocks: Leave | ||
# ShortNamespaceLines: 1 | ||
# SortIncludes: CaseSensitive | ||
# SortJavaStaticImport: Before | ||
# SortUsingDeclarations: true | ||
# SpaceAfterCStyleCast: false | ||
# SpaceAfterLogicalNot: false | ||
# SpaceAfterTemplateKeyword: true | ||
# SpaceBeforeAssignmentOperators: true | ||
# SpaceBeforeCaseColon: false | ||
# SpaceBeforeCpp11BracedList: false | ||
# SpaceBeforeCtorInitializerColon: true | ||
# SpaceBeforeInheritanceColon: true | ||
# SpaceBeforeParens: ControlStatements | ||
# SpaceBeforeParensOptions: | ||
# AfterControlStatements: true | ||
# AfterForeachMacros: true | ||
# AfterFunctionDefinitionName: false | ||
# AfterFunctionDeclarationName: false | ||
# AfterIfMacros: true | ||
# AfterOverloadedOperator: false | ||
# BeforeNonEmptyParentheses: false | ||
# SpaceAroundPointerQualifiers: Default | ||
# SpaceBeforeRangeBasedForLoopColon: true | ||
# SpaceInEmptyBlock: false | ||
# SpaceInEmptyParentheses: false | ||
# SpacesBeforeTrailingComments: 1 | ||
# SpacesInAngles: Never | ||
# SpacesInConditionalStatement: false | ||
# SpacesInContainerLiterals: true | ||
# SpacesInCStyleCastParentheses: false | ||
## Godot TODO: We'll want to use a min of 1, but we need to see how to fix | ||
## our comment capitalization at the same time. | ||
SpacesInLineCommentPrefix: | ||
Minimum: 0 | ||
Maximum: -1 | ||
# SpacesInParentheses: false | ||
# SpacesInSquareBrackets: false | ||
# SpaceBeforeSquareBrackets: false | ||
# BitFieldColonSpacing: Both | ||
# StatementAttributeLikeMacros: | ||
# - Q_EMIT | ||
# StatementMacros: | ||
# - Q_UNUSED | ||
# - QT_REQUIRE_VERSION | ||
TabWidth: 4 | ||
# UseCRLF: false | ||
UseTab: Always | ||
# WhitespaceSensitiveMacros: | ||
# - STRINGIZE | ||
# - PP_STRINGIZE | ||
# - BOOST_PP_STRINGIZE | ||
# - NS_SWIFT_NAME | ||
# - CF_SWIFT_NAME | ||
--- | ||
### C++ specific config ### | ||
Language: Cpp | ||
Standard: c++17 | ||
--- | ||
### ObjC specific config ### | ||
Language: ObjC | ||
# ObjCBinPackProtocolList: Auto | ||
ObjCBlockIndentWidth: 4 | ||
# ObjCBreakBeforeNestedBlockParam: true | ||
# ObjCSpaceAfterProperty: false | ||
# ObjCSpaceBeforeProtocolList: true | ||
--- | ||
### Java specific config ### | ||
Language: Java | ||
# BreakAfterJavaFieldAnnotations: false | ||
JavaImportGroups: ['org.godotengine', 'android', 'androidx', 'com.android', 'com.google', 'java', 'javax'] | ||
... |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
*.c eol=lf | ||
*.cpp eol=lf | ||
*.gd eol=lf | ||
*.tscn eol=lf | ||
*.cfg eol=lf | ||
*.godot eol=lf |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Lines starting with '#' are comments. | ||
# Each line is a file pattern followed by one or more owners. | ||
# Owners can be @users, @org/teams or emails | ||
|
||
* @godotengine/gdextension | ||
.github/ @godotengine/buildsystem |
71 changes: 71 additions & 0 deletions
71
thirdparty/godot-cpp/.github/ISSUE_TEMPLATE/bug_report.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Bug report | ||
description: Report a bug in the godot-cpp GDExtension/GDNative integration | ||
body: | ||
|
||
- type: markdown | ||
attributes: | ||
value: | | ||
- When reporting bugs, you'll make our life simpler (and the fix will come sooner) if you follow the guidelines in this template. | ||
- Write a descriptive issue title above. | ||
- The golden rule is to **always open *one* issue for *one* bug**. If you notice several bugs and want to report them, make sure to create one new issue for each of them. | ||
- Search [open](https://github.com/godotengine/godot-cpp/issues) and [closed](https://github.com/godotengine/godot-cpp/issues?q=is%3Aissue+is%3Aclosed) issues to ensure it has not already been reported. If you don't find a relevant match or if you're unsure, don't hesitate to **open a new issue**. The bugsquad will handle it from there if it's a duplicate. | ||
- Verify that you are using a [supported Godot version](https://docs.godotengine.org/en/stable/about/release_policy.html). | ||
- type: input | ||
attributes: | ||
label: Godot version | ||
description: > | ||
Specify the Git commit hash if using a development or non-official build. | ||
If you use a custom build, please test if your issue is reproducible in official builds too. | ||
placeholder: 3.3.stable, 4.0.dev (3041becc6) | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
attributes: | ||
label: godot-cpp version | ||
description: > | ||
Specify the Git commit hash if using a development build. | ||
placeholder: 3.3.stable, 4.0.dev (3041becc6) | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
attributes: | ||
label: System information | ||
description: | | ||
- Specify the OS version, and when relevant hardware information. | ||
- For issues that are likely OS-specific and/or graphics-related, please specify the CPU model and architecture. | ||
- **Bug reports not including the required information may be closed at the maintainers' discretion.** If in doubt, always include all the requested information; it's better to include too much information than not enough information. | ||
placeholder: Windows 10, Intel Core i5-7200U | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Issue description | ||
description: | | ||
Describe your issue briefly. What doesn't work, and how do you expect it to work instead? | ||
You can include images or videos with drag and drop, and format code blocks or logs with <code>```</code> tags. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Steps to reproduce | ||
description: | | ||
List of steps or sample code that reproduces the issue. Having reproducible issues is a prerequisite for contributors to be able to solve them. | ||
If you include a minimal reproduction project below, you can detail how to use it here. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Minimal reproduction project | ||
description: | | ||
- A small Godot project which reproduces the issue, with no unnecessary files included. Be sure to not include the `.godot` folder in the archive (but keep `project.godot`). | ||
- Required, unless the reproduction steps are trivial and don't require any project files to be followed. In this case, write "N/A" in the field. | ||
- Drag and drop a ZIP archive to upload it. **Do not select another field until the project is done uploading.** | ||
- **If you've been asked by a maintainer to upload a minimal reproduction project, you *must* do so within 7 days.** Otherwise, your bug report will be closed as it'll be considered too difficult to diagnose. | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
blank_issues_enabled: false | ||
|
||
contact_links: | ||
- name: Godot proposals | ||
url: https://github.com/godotengine/godot-proposals | ||
about: Please submit feature proposals on the Godot proposals repository, not here. | ||
|
||
- name: Godot documentation repository | ||
url: https://github.com/godotengine/godot-docs | ||
about: Please report issues with documentation on the Godot documentation repository, not here. | ||
|
||
- name: Godot community channels | ||
url: https://godotengine.org/community | ||
about: Please ask for technical support on one of the other community channels, not here. |
22 changes: 22 additions & 0 deletions
22
thirdparty/godot-cpp/.github/actions/godot-cache/action.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Setup Godot build cache | ||
description: Setup Godot build cache. | ||
inputs: | ||
cache-name: | ||
description: The cache base name (job name by default). | ||
default: "${{github.job}}" | ||
scons-cache: | ||
description: The scons cache path. | ||
default: "${{github.workspace}}/.scons-cache/" | ||
runs: | ||
using: "composite" | ||
steps: | ||
# Upload cache on completion and check it out now | ||
- name: Load .scons_cache directory | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{inputs.scons-cache}} | ||
key: ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} | ||
restore-keys: | | ||
${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} | ||
${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}} | ||
${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
Oops, something went wrong.