WopsS / RED4ext.SDK

A library to create mods for REDengine 4 (Cyberpunk 2077), independently of RED4ext.
MIT License
93 stars 31 forks source link

Smart pointers, memory and resources #63

Closed psiberx closed 1 year ago

psiberx commented 1 year ago

Probably need to exclude Address.hpp from format check .)

And this is less readable imo, but concepts formatting doesn't seem to be very customizable yet:

template<typename T>
concept HasStaticAllocator = requires(T)
{
    {
        T::AllocatorType::Get()
        } -> std::convertible_to<Memory::IAllocator*>;
};
WopsS commented 1 year ago

I do agree, we should disable checks for Addresses and for concepts.

WopsS commented 1 year ago

Do you mind adding the comment to disable clang format for concepts and addresses?

psiberx commented 1 year ago

Sure. // clang-format off?

WopsS commented 1 year ago

Sure. // clang-format off?

Yes. // clang-format off and then // clang-format on to enable it again after concepts.

Thanks!

WopsS commented 1 year ago

Thanks :D