You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
casting:
Use C++-style casts (e.g. static_cast) for type conversions instead of C-style casts.
Whenever possible, use SafePointerCast from SafePointerCast.h instead of reinterpret_cast for pointer casting, since it is safer and adds alignment and type safety checks.
Avoid casting function pointers to void *, as this is considered undefined behavior in C++. (we currently have LambdaBridge.h that can be used as alternative, I dont know if its sensible to add it here)
Use Span/ByteSpan instead of C-style pointers for buffers
Variable, class, file naming?
PascalCasing
constexpr preferred to defines
class enum
Maybe some guidance for .gn file structure
Feature description
...
Content suggestions from the original PR:
casting:
Use C++-style casts (e.g. static_cast) for type conversions instead of C-style casts.
Whenever possible, use SafePointerCast from SafePointerCast.h instead of reinterpret_cast for pointer casting, since it is safer and adds alignment and type safety checks.
Avoid casting function pointers to void *, as this is considered undefined behavior in C++. (we currently have LambdaBridge.h that can be used as alternative, I dont know if its sensible to add it here)
Use Span/ByteSpan instead of C-style pointers for buffers
Variable, class, file naming?
PascalCasing
constexpr preferred to defines
class enum
Maybe some guidance for .gn file structure
refs:
#36275 (comment)
#36275 (comment)
#36275 (comment)
Platform
core
Platform Version(s)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: