Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
diana:diana_codestyle [2025-11-27 17:42:18] lisbethb removed |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Code style ====== | ||
| - | |||
| - | To gradually improve the code style in diana, we ask to format all changesets using [[http:// | ||
| - | |||
| - | <file - .clang-format> | ||
| - | --- | ||
| - | BasedOnStyle: | ||
| - | Language: Cpp | ||
| - | PointerAlignment: | ||
| - | ColumnLimit: | ||
| - | AllowShortFunctionsOnASingleLine: | ||
| - | AlwaysBreakTemplateDeclarations: | ||
| - | BreakBeforeBraces: | ||
| - | BraceWrapping: | ||
| - | AfterClass: | ||
| - | AfterFunction: | ||
| - | AfterStruct: | ||
| - | AfterUnion: | ||
| - | BreakConstructorInitializersBeforeComma: | ||
| - | ... | ||
| - | |||
| - | </ | ||
| - | |||
| - | This style configuration should be saved in the diana top-level source-directory as '' | ||
| - | |||
| - | We suggest using [[https:// | ||
| - | |||
| - | * save [[https:// | ||
| - | * if '' | ||
| - | * preview reformatted modifications with < | ||
| - | * reformat modifications with < | ||