summaryrefslogtreecommitdiff
path: root/.clang-format
Commit message (Collapse)AuthorAgeFilesLines
* clang-format: Adjust style of pointersJan Janssen2022-05-301-8/+10
| | | | | We gernerally have our pointers aligned to the right. SpaceAroundPointerQualifiers makes sure "const char * const" is formatted nicely.
* clang-format: we actually typically use 16ch continuation indentationLennart Poettering2022-02-221-1/+1
| | | | | We use 8 for blocks, and 16 for continuation in most cases afaics, hence say so in .clang-format too
* various: fix three spelling issues found by fossiesZbigniew Jędrzejewski-Szmek2022-01-031-1/+1
|
* clang-format: set SpaceBeforeParens to ControlStatementsExceptForEachMacrosDaan De Meyer2020-11-161-0/+1
| | | | | | | I contributed this option to LLVM a while ago to reduce the amount of changes clang-format makes when formatting systemd source files. As LLVM 11 is now starting to becomes widely available, let's configure it in the clang-format config.
* Remove FOREACH_WORD and friendsZbigniew Jędrzejewski-Szmek2020-09-091-3/+0
|
* clang-format: set Break afer enum to falseNorbert Lange2020-07-191-1/+1
| | | | if set to true, the opening bracket will be moved to the next line.
* Update .clang-formatszb5122020-07-131-1/+1
|
* Make the instructions slightly easier to readszb5122020-07-131-3/+3
|
* Improve help for clang-formatNorbert Lange2020-04-251-2/+16
| | | | The comments lack the most important usecase: fixing up your commits.
* Add .clang-format fileSebastian Jennen2020-04-171-0/+112
The result of automatic formatting is not perfect, but if someone uses an editor that uses that, it's probably better than nothing. Fixes #15415. [zjs: I resurrected this patch from #11811 and edited the extended comment heavily.]