mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-25 16:55:42 +01:00
Lessen restrictions on const_cast. Some C and C++ external libraries may have const-incorrect APIs that necessitate it.
parent
1d183ff11a
commit
03535e6a10
@ -22,7 +22,7 @@ If clang format is found, then cmake will add a custom build target that can be
|
|||||||
* Don't ever introduce new external dependencies into Core
|
* Don't ever introduce new external dependencies into Core
|
||||||
* Don't use any platform specific code in Core
|
* Don't use any platform specific code in Core
|
||||||
* Use namespaces often
|
* Use namespaces often
|
||||||
* Avoid the use of C-style casts and instead prefer C++-style `static_cast` and `reinterpret_cast`. Try to avoid using `dynamic_cast`. Never use `const_cast`.
|
* Avoid the use of C-style casts and instead prefer C++-style `static_cast` and `reinterpret_cast`. Try to avoid using `dynamic_cast`. Never use `const_cast`, except when dealing with external const-incorrect APIs.
|
||||||
|
|
||||||
### Naming Rules
|
### Naming Rules
|
||||||
* Functions: `PascalCase`
|
* Functions: `PascalCase`
|
||||||
|
Loading…
Reference in New Issue
Block a user