mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
Documentation: Add preferred coding style options to CLion configuration
This commit is contained in:
parent
55c0307288
commit
358356758a
Notes:
sideshowbarker
2024-07-18 08:00:42 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/358356758a7 Pull-request: https://github.com/SerenityOS/serenity/pull/9050 Reviewed-by: https://github.com/awesomekling
2 changed files with 11 additions and 1 deletions
|
@ -16,7 +16,7 @@ After opening the `serenity` repository in CLion as a new project, the "`Open Pr
|
|||
|
||||
> _If you have not built the Toolchain at this point, please do so: `./Toolchain/BuildIt.sh`_
|
||||
|
||||
If you already have the project open, you can go to "`File->Settings->Build, Execution, Deployment->Cmake`" to find these options.
|
||||
If you already have the project open, you can go to `File -> Settings -> Build, Execution, Deployment -> CMake` to find these options.
|
||||
|
||||
Remember to recreate the CMake cache after changing any of the options.
|
||||
|
||||
|
@ -30,6 +30,16 @@ want exclude Toolchain files as well, follow the same procedure with the followi
|
|||
- `Toolchain/Tarballs`
|
||||
- `Toolchain/Build`
|
||||
|
||||
## Code Generation Settings
|
||||
|
||||
To make code generated by CLion (e.g. identifier names, const placement) match the SerenityOS coding style, change the
|
||||
following options under `Settings -> Editor -> Code Style -> C/C++`:
|
||||
|
||||
- On the `Code Generation` tab set `const/volatile qualifier placement` to `int const x = 0`
|
||||
- On the `Naming Convention` tab, select the following:
|
||||
|
||||
![Screenshot of Naming Convention settings](./CLion_Naming_Convention.png)
|
||||
|
||||
## Notes for WSL Users
|
||||
|
||||
It is possible to set the embedded terminal in CLion to the one that your WSL distribution provides.
|
||||
|
|
BIN
Documentation/CLion_Naming_Convention.png
Normal file
BIN
Documentation/CLion_Naming_Convention.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 41 KiB |
Loading…
Reference in a new issue