Differences
This shows you the differences between two versions of the page.
diana:diana_codestyle [2018-04-16 09:50:20] alexanderb break after template |
diana:diana_codestyle [2022-05-31 09:29:31] |
||
---|---|---|---|
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 < | ||