[ox/model] Fix clangd false alarm
This commit is contained in:
parent
aa8200beed
commit
9948346ce4
7
deps/ox/src/ox/model/modelvalue.hpp
vendored
7
deps/ox/src/ox/model/modelvalue.hpp
vendored
@ -334,7 +334,12 @@ consteval bool isVector(const ModelValueVector*) noexcept {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
constexpr Error model(auto *h, CommonPtrWith<ModelObject> auto *obj) noexcept;
|
||||||
|
constexpr Error model(auto *h, CommonPtrWith<ModelUnion> auto *obj) noexcept;
|
||||||
|
|
||||||
|
|
||||||
class ModelObject {
|
class ModelObject {
|
||||||
|
friend constexpr Error model(auto *h, CommonPtrWith<ModelObject> auto *obj) noexcept;
|
||||||
public:
|
public:
|
||||||
struct Field {
|
struct Field {
|
||||||
String name;
|
String name;
|
||||||
@ -517,7 +522,7 @@ class ModelUnion {
|
|||||||
String name;
|
String name;
|
||||||
ModelValue value;
|
ModelValue value;
|
||||||
};
|
};
|
||||||
oxModelFriend(ModelUnion);
|
friend constexpr Error model(auto *h, CommonPtrWith<ModelUnion> auto *obj) noexcept;
|
||||||
friend ModelValue;
|
friend ModelValue;
|
||||||
Vector<UniquePtr<Field>> m_fieldsOrder;
|
Vector<UniquePtr<Field>> m_fieldsOrder;
|
||||||
HashMap<String, Field*> m_fields;
|
HashMap<String, Field*> m_fields;
|
||||||
|
Loading…
Reference in New Issue
Block a user