mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Update .clang-format
This commit is contained in:
@ -5,7 +5,8 @@ Standard: Cpp11
|
|||||||
ColumnLimit: 0
|
ColumnLimit: 0
|
||||||
|
|
||||||
# We want a space between the type and the star for pointer types.
|
# We want a space between the type and the star for pointer types.
|
||||||
PointerBindsToType: false
|
DerivePointerAlignment: false
|
||||||
|
PointerAlignment: Right
|
||||||
|
|
||||||
# We use template< without space.
|
# We use template< without space.
|
||||||
SpaceAfterTemplateKeyword: false
|
SpaceAfterTemplateKeyword: false
|
||||||
@ -43,7 +44,7 @@ NamespaceIndentation: None
|
|||||||
# The coding style does not specify the following, but this is what gives
|
# The coding style does not specify the following, but this is what gives
|
||||||
# results closest to the existing code.
|
# results closest to the existing code.
|
||||||
AlignAfterOpenBracket: true
|
AlignAfterOpenBracket: true
|
||||||
AlwaysBreakTemplateDeclarations: true
|
BreakTemplateDeclarations: Yes
|
||||||
|
|
||||||
# Ideally we should also allow less short function in a single line, but
|
# Ideally we should also allow less short function in a single line, but
|
||||||
# clang-format does not handle that.
|
# clang-format does not handle that.
|
||||||
@ -60,3 +61,6 @@ ForEachMacros: [ foreach, BOOST_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENC
|
|||||||
|
|
||||||
# Break constructor initializers before the colon and after the commas.
|
# Break constructor initializers before the colon and after the commas.
|
||||||
BreakConstructorInitializers: BeforeColon
|
BreakConstructorInitializers: BeforeColon
|
||||||
|
|
||||||
|
# Empty blocks should be {}
|
||||||
|
SpaceInEmptyBraces: Always
|
||||||
|
|||||||
Reference in New Issue
Block a user