| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| |
| |
| |
| | |
jpcerrone/fix_shadow_warnings_not_going_away_after_ignoring
Fix for not being able to ignore shadowing warnings on class scope
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Unfortunately it appears the virtual function checks in #77324 are not
trustworthy at runtime, because objects can have scripts attached, but
this information is not always available at compile-time. These checks
need to be removed.
The rest of the PR is still useful, making all method flags available to
the analyzer, so a full revert isn't necessary/desirable.
This reopens #76938, which will need another solution.
|
| |
|
|\
| |
| | |
Fix: Typed arrays aren't working with +
|
| | |
|
|\ \
| | |
| | |
| | | |
GDScript: Fix some bugs with static variables and functions
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | | |
Allow boolean operators for all Variant types
|
| | | |
| | | |
| | | |
| | | |
| | | | |
To make consistent with previous behavior. Mostly to be used in
conditions for `if` and `while`.
|
|\ \ \ \
| |_|/ /
|/| | |
| | | | |
Fix: Get constructor as Callable
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
GDScript: add errors when calling unimplemented virtual functions
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This PR does a small refactor of how method flags are handled in the GDScript analyzer.
This way, it adds support for the analyzer to use any of MethodInfo's flags, where previously
it could only use METHOD_FLAG_STATIC and METHOD_FLAG_VARARG.
As a side-effect, this also normalizes behavior between editor and release templates, which fixes #76938.
The tests added also brought a different issue to light, where using `super()` appears to generate a
return variable discarded on calling super's _init(), which doesn't have a return value. This should be
tackled in a different PR, which will have to change the output of this PR's tests.
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This applies our existing style guide, and adds a new rule to that style
guide for modular components such as platform ports and modules:
Includes from the platform port or module ("local" includes) should be listed
first in their own block using relative paths, before Godot's "core" includes
which use "absolute" (project folder relative) paths, and finally thirdparty
includes.
Includes in `#ifdef`s come after their relevant section, i.e. the overall
structure is:
- Local includes
* Conditional local includes
- Core includes
* Conditional core includes
- Thirdparty includes
* Conditional thirdparty includes
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
GDScript: do not RETURN_VALUE_DISCARDED for `super()` inside `_init()`
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
DO NOT BATCH MERGE WITH #77324, WILL RESULT IN BROKEN CI
Currently, calling super() inside _init() throws a
RETURN_VALUE_DISCARDED warning. The analyzer identifies super() as being a
constructor, which therefore returns an object of the relevant class.
However, super() isn't really a constructor by itself: in this case, it
is _part_ of the constructor, and so doesn't "return" a value.
A test case for this is already in #77324, which contains the warning. I
am duplicating it here, without the warning, and it should conflict with
the other PR.
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | | |
GDScript: Allow elements of a parent class in a typed array literal
|
| | | | | | |
|
| |/ / / /
|/| | | | |
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | | |
GDScript: Reorganize and unify warnings
|
| | | | | | |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | |
| | | | | | |
GDScript: Allow usage of literal false in assert without a warning
|
| | |_|/ /
| |/| | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Which allows editable data associated with a particular class instead of
the instance. Scripts with static variables are kept in memory
indefinitely unless the `@static_unload` annotation is used or the
`static_unload()` method is called on the GDScript.
If the custom function `_static_init()` exists it will be called when
the class is loaded, after the static variables are set.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
GDScript: Misc fixes and improvements for signature generation
|
| | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* Use type hints for `@GlobalScope` enums.
* Use plain `int` for `BitMask<T>`.
* Fix type hints for typed arrays.
* Use `Variant` and `void` type hints.
* Discard unnecessary class prefix.
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
GDScript: Fix false positive `REDUNDANT_AWAIT` warning
|
| |/ / / |
|
|\ \ \ \
| | | | |
| | | | | |
GDScript: Change parser representation of class extends
|
| |/ / / |
|
|/ / / |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | | |
GDScript: Fix override signature check of script inheritance
|
| |/ /
| | |
| | |
| | |
| | | |
Avoid treating the super class as a meta type for signature check, since
it is looking at the instance level for that.
|
|/ / |
|
|\ \
| | |
| | |
| | | |
Make global scope enums accessible as types in GDScript
|
| |/
| |
| |
| |
| |
| | |
Add functions to CoreConstant so enums can be properly deduced. Also add
the enums in release builds to make consistent with ClassDB enums and
avoid differences in script compilation between debug and release.
|
|\ \
| | |
| | |
| | | |
GDScript: Rework type check
|
| |/ |
|
|\ \
| |/
|/|
| | |
GDScript: Fix missing unsafety mark for binary op with weak variables
|
| | |
|