Fix RequiredResult<T> not being parsed properly by include-cleaner

This commit is contained in:
Enzo Novoselic
2026-05-02 14:02:01 -04:00
parent 7b82c0fe01
commit 1b98247ef8
4 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -1024,12 +1024,12 @@ public:
}
template <typename U = T, std::enable_if_t<std::is_base_of_v<RefCounted, U>, int> = 0>
_FORCE_INLINE_ element_type *ptr() const {
_FORCE_INLINE_ T *ptr() const {
return *_value;
}
template <typename U = T, std::enable_if_t<!std::is_base_of_v<RefCounted, U>, int> = 0>
_FORCE_INLINE_ element_type *ptr() const {
_FORCE_INLINE_ T *ptr() const {
return _value;
}
@@ -1042,11 +1042,11 @@ public:
return Ref<T_Other>(_value);
}
_FORCE_INLINE_ element_type *operator*() const {
_FORCE_INLINE_ T *operator*() const {
return ptr();
}
_FORCE_INLINE_ element_type *operator->() const {
_FORCE_INLINE_ T *operator->() const {
return ptr();
}
};
@@ -37,7 +37,7 @@
#include "core/version.h"
#include "scene/main/node.h"
#include "scene/main/scene_tree.h"
#include "scene/main/window.h" // IWYU pragma: keep. Used via `get_root()`.
#include "scene/main/window.h" // IWYU pragma: keep. FIXME: Couldn't figure out how to make RequiredResult<T> equality checks be analyzed properly by include-cleaner.
void SnapshotCollector::initialize() {
pending_snapshots.clear();
+1 -1
View File
@@ -49,7 +49,7 @@
#include "scene/debugger/scene_debugger_object.h"
#include "scene/main/node.h"
#include "scene/main/scene_tree.h"
#include "scene/main/window.h" // SceneTree:get_root()
#include "scene/main/window.h"
#include "scene/resources/packed_scene.h"
#include "servers/audio/audio_server.h"
#include "servers/display/display_server.h"
+1 -1
View File
@@ -36,7 +36,7 @@
#include "core/input/input.h"
#include "core/input/shortcut.h"
#include "scene/main/scene_tree.h"
#include "scene/main/window.h" // IWYU pragma: keep. Needed to get the mouse position from the root window.
#include "scene/main/window.h"
using namespace View3DControllerConsts;