mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-28 01:49:33 -06:00
Require clang-format 9 and reformat source code
This updates the lint script to require clang-format 9 and reformats existing source code. Since VS2019 ships with clang-format 9 this should make auto reformats less painful. This also updates the clang-format configuration to set BraceWrapping.AfterCaseLabel to true to ensure consistent brace style; otherwise clang-format 9+ defaults to putting braces on the same line as switch case labels.
This commit is contained in:
@ -56,11 +56,6 @@ Installer directory. This will require the Nullsoft Scriptable Install System
|
||||
(NSIS) to be installed. Creating an installer is not necessary to run Dolphin
|
||||
since the Binary directory contains a working Dolphin distribution.
|
||||
|
||||
To ease contributing code to Dolphin which has been modified in Visual Studio,
|
||||
install clang-format-7 by installing a 7.x version of the LLVM tools from http://releases.llvm.org.
|
||||
In Visual Studio, under Options > Text Editor > C/C++ > Formatting > General,
|
||||
enable "Use custom clang-format.exe file" and point it to the just-installed clang-format.exe
|
||||
|
||||
## Building for Linux and macOS
|
||||
|
||||
Dolphin requires [CMake](https://cmake.org/) for systems other than Windows. Many libraries are
|
||||
|
Reference in New Issue
Block a user