mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 23:22:01 +00:00
2db0264aca
* style: adding clang-format as manual hook * docs: adding a Clang-Format section. (#2803) Co-authored-by: Ralf W. Grosse-Kunstleve <rwgk@google.com>
22 lines
523 B
YAML
22 lines
523 B
YAML
---
|
|
# See all possible options and defaults with:
|
|
# clang-format --style=llvm --dump-config
|
|
BasedOnStyle: LLVM
|
|
AccessModifierOffset: -4
|
|
AlignConsecutiveAssignments: true
|
|
AlwaysBreakTemplateDeclarations: Yes
|
|
BinPackArguments: false
|
|
BinPackParameters: false
|
|
BreakBeforeBinaryOperators: All
|
|
BreakConstructorInitializers: BeforeColon
|
|
ColumnLimit: 99
|
|
IndentCaseLabels: true
|
|
IndentPPDirectives: AfterHash
|
|
IndentWidth: 4
|
|
Language: Cpp
|
|
SpaceAfterCStyleCast: true
|
|
# SpaceInEmptyBlock: true # too new
|
|
Standard: Cpp11
|
|
TabWidth: 4
|
|
...
|