mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-24 10:41:04 +00:00
Clang format was updated to 12.0
parent
4a68536071
commit
7418771ef2
@ -8,8 +8,8 @@ If you believe you have a valid issue report, please attach the log file (See [t
|
|||||||
|
|
||||||
Citra is a brand new project, so we have a great opportunity to keep things clean and well organized early on. As such, coding style is very important when making commits. We run clang-format on our CI to check the code. Please use it to format your code when contributing. However, it doesn't cover all the rules below. Some of them aren't very strict rules since we want to be flexible and we understand that under certain circumstances some of them can be counterproductive. Just try to follow as many of them as possible.
|
Citra is a brand new project, so we have a great opportunity to keep things clean and well organized early on. As such, coding style is very important when making commits. We run clang-format on our CI to check the code. Please use it to format your code when contributing. However, it doesn't cover all the rules below. Some of them aren't very strict rules since we want to be flexible and we understand that under certain circumstances some of them can be counterproductive. Just try to follow as many of them as possible.
|
||||||
|
|
||||||
# Using clang format (version 10.0)
|
# Using clang format (version 12.0)
|
||||||
When generating the native build script for your toolset, cmake will try to find the correct version of clang format (or will download it on windows). Before running cmake, please install clang format version 10.0 for your platform as follows:
|
When generating the native build script for your toolset, cmake will try to find the correct version of clang format (or will download it on windows). Before running cmake, please install clang format version 12.0 for your platform as follows:
|
||||||
|
|
||||||
* Windows: do nothing; cmake will download a pre built binary for MSVC and MINGW. MSVC users can additionally install a clang format Visual Studio extension to add features like format on save.
|
* Windows: do nothing; cmake will download a pre built binary for MSVC and MINGW. MSVC users can additionally install a clang format Visual Studio extension to add features like format on save.
|
||||||
* macOS: run `brew install clang-format`.
|
* macOS: run `brew install clang-format`.
|
||||||
|
Loading…
Reference in New Issue
Block a user