diff options
| author | 2018-10-06 10:11:35 -0400 | |
|---|---|---|
| committer | 2018-10-06 10:11:35 -0400 | |
| commit | 6d4f5b967372a0d9887bf2febefb96e71a054ac6 (patch) | |
| tree | 495ecfe426d5e81016e4b3fe646d33ab028c643a | |
| parent | Merge pull request #1449 from lioncash/link (diff) | |
| parent | CONTRIBUTING.md - remove note about casting numeric types (diff) | |
| download | yuzu-6d4f5b967372a0d9887bf2febefb96e71a054ac6.tar.gz yuzu-6d4f5b967372a0d9887bf2febefb96e71a054ac6.tar.xz yuzu-6d4f5b967372a0d9887bf2febefb96e71a054ac6.zip | |
Merge pull request #1452 from FearlessTobi/port-4313
Port citra-emu/citra#4313: "CONTRIBUTING.md - remove note about casting numeric types"
Diffstat (limited to '')
| -rw-r--r-- | CONTRIBUTING.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 008dc5b50..1b2056885 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md | |||
| @@ -22,7 +22,7 @@ If clang format is found, then cmake will add a custom build target that can be | |||
| 22 | * Don't ever introduce new external dependencies into Core | 22 | * Don't ever introduce new external dependencies into Core |
| 23 | * Don't use any platform specific code in Core | 23 | * Don't use any platform specific code in Core |
| 24 | * Use namespaces often | 24 | * Use namespaces often |
| 25 | * 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`. The only exception to this rule is for casting between two numeric types, where C-style casts are encouraged for brevity and readability. | 25 | * 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`. |
| 26 | 26 | ||
| 27 | ### Naming Rules | 27 | ### Naming Rules |
| 28 | * Functions: `PascalCase` | 28 | * Functions: `PascalCase` |