mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
Documentation: Recommend CLion code style settings over manual steps
Changing the naming conventions one-by-one was tedious and error-prone. A settings file is likely to be more forward compatible than a screenshot. The settings file was made by repeating the manual steps provided in the documentation, and exporting the file in CLion.
This commit is contained in:
committed by
Linus Groh
parent
babfc13c84
commit
eb44a90e62
Notes:
sideshowbarker
2024-07-17 03:44:50 +09:00
Author: https://github.com/andreao Commit: https://github.com/SerenityOS/serenity/commit/eb44a90e62 Pull-request: https://github.com/SerenityOS/serenity/pull/16178 Reviewed-by: https://github.com/linusg
@@ -48,13 +48,8 @@ A symptom of this not being configured correctly is CLion giving a warning for e
|
||||
|
||||
## 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:
|
||||
|
||||

|
||||
To make code generated by CLion match the SerenityOS coding style, import the `CLionCodeSyleSettings.xml` from this directory as code style scheme via
|
||||
`Settings -> Editor -> Code Style -> C/C++ -> Scheme -> Cog icon -> Import Scheme...`
|
||||
|
||||
## Quick switching between Kernel and Userland targets
|
||||
|
||||
|
||||
Reference in New Issue
Block a user