2016-05-20 17:30:37 -07:00
|
|
|
---
|
2023-05-31 22:10:53 -07:00
|
|
|
Language: Cpp
|
2016-05-20 17:30:37 -07:00
|
|
|
BasedOnStyle: Google
|
|
|
|
|
AccessModifierOffset: -1
|
|
|
|
|
AlignAfterOpenBracket: Align
|
2023-05-31 22:10:53 -07:00
|
|
|
AlignArrayOfStructures: None
|
|
|
|
|
AlignConsecutiveAssignments:
|
|
|
|
|
Enabled: false
|
|
|
|
|
AcrossEmptyLines: false
|
|
|
|
|
AcrossComments: false
|
|
|
|
|
AlignCompound: false
|
|
|
|
|
PadOperators: true
|
|
|
|
|
AlignConsecutiveBitFields:
|
|
|
|
|
Enabled: false
|
|
|
|
|
AcrossEmptyLines: false
|
|
|
|
|
AcrossComments: false
|
|
|
|
|
AlignCompound: false
|
|
|
|
|
PadOperators: false
|
|
|
|
|
AlignConsecutiveDeclarations:
|
|
|
|
|
Enabled: false
|
|
|
|
|
AcrossEmptyLines: false
|
|
|
|
|
AcrossComments: false
|
|
|
|
|
AlignCompound: false
|
|
|
|
|
PadOperators: false
|
|
|
|
|
AlignConsecutiveMacros:
|
|
|
|
|
Enabled: false
|
|
|
|
|
AcrossEmptyLines: false
|
|
|
|
|
AcrossComments: false
|
|
|
|
|
AlignCompound: false
|
|
|
|
|
PadOperators: false
|
2024-03-18 23:11:20 -07:00
|
|
|
AlignConsecutiveShortCaseStatements:
|
|
|
|
|
Enabled: false
|
|
|
|
|
AcrossEmptyLines: false
|
|
|
|
|
AcrossComments: false
|
|
|
|
|
AlignCaseColons: false
|
2017-11-11 22:09:51 -08:00
|
|
|
AlignEscapedNewlines: Left
|
2023-05-31 22:10:53 -07:00
|
|
|
AlignOperands: Align
|
|
|
|
|
AlignTrailingComments:
|
|
|
|
|
Kind: Always
|
|
|
|
|
OverEmptyLines: 0
|
2020-06-27 20:39:00 -07:00
|
|
|
AllowAllArgumentsOnNextLine: true
|
2016-05-20 17:30:37 -07:00
|
|
|
AllowAllParametersOfDeclarationOnNextLine: true
|
2020-06-27 20:39:00 -07:00
|
|
|
AllowShortBlocksOnASingleLine: Never
|
2016-05-20 17:30:37 -07:00
|
|
|
AllowShortCaseLabelsOnASingleLine: false
|
2023-05-31 22:10:53 -07:00
|
|
|
AllowShortEnumsOnASingleLine: true
|
2020-12-28 12:58:06 -08:00
|
|
|
AllowShortFunctionsOnASingleLine: Inline
|
|
|
|
|
AllowShortIfStatementsOnASingleLine: Never
|
2023-05-31 22:10:53 -07:00
|
|
|
AllowShortLambdasOnASingleLine: All
|
2020-12-28 12:58:06 -08:00
|
|
|
AllowShortLoopsOnASingleLine: false
|
2016-05-20 17:30:37 -07:00
|
|
|
AlwaysBreakAfterDefinitionReturnType: None
|
|
|
|
|
AlwaysBreakAfterReturnType: None
|
|
|
|
|
AlwaysBreakBeforeMultilineStrings: true
|
2020-06-27 20:39:00 -07:00
|
|
|
AlwaysBreakTemplateDeclarations: Yes
|
2023-05-31 22:10:53 -07:00
|
|
|
AttributeMacros:
|
|
|
|
|
- __capability
|
2016-05-20 17:30:37 -07:00
|
|
|
BinPackArguments: true
|
|
|
|
|
BinPackParameters: true
|
2023-05-31 22:10:53 -07:00
|
|
|
BitFieldColonSpacing: Both
|
2016-07-10 08:33:27 -07:00
|
|
|
BraceWrapping:
|
2020-06-27 20:39:00 -07:00
|
|
|
AfterCaseLabel: false
|
2016-05-20 17:30:37 -07:00
|
|
|
AfterClass: false
|
2023-05-31 22:10:53 -07:00
|
|
|
AfterControlStatement: Never
|
2016-05-20 17:30:37 -07:00
|
|
|
AfterEnum: false
|
2023-05-31 22:10:53 -07:00
|
|
|
AfterExternBlock: false
|
2016-05-20 17:30:37 -07:00
|
|
|
AfterFunction: false
|
|
|
|
|
AfterNamespace: false
|
|
|
|
|
AfterObjCDeclaration: false
|
|
|
|
|
AfterStruct: false
|
|
|
|
|
AfterUnion: false
|
|
|
|
|
BeforeCatch: false
|
|
|
|
|
BeforeElse: false
|
2023-05-31 22:10:53 -07:00
|
|
|
BeforeLambdaBody: false
|
|
|
|
|
BeforeWhile: false
|
2016-05-20 17:30:37 -07:00
|
|
|
IndentBraces: false
|
2017-11-11 22:09:51 -08:00
|
|
|
SplitEmptyFunction: true
|
|
|
|
|
SplitEmptyRecord: true
|
|
|
|
|
SplitEmptyNamespace: true
|
2023-05-31 22:10:53 -07:00
|
|
|
BreakAfterAttributes: Always
|
|
|
|
|
BreakAfterJavaFieldAnnotations: false
|
|
|
|
|
BreakArrays: true
|
2016-05-20 17:30:37 -07:00
|
|
|
BreakBeforeBinaryOperators: None
|
2023-05-31 22:10:53 -07:00
|
|
|
BreakBeforeConceptDeclarations: Always
|
2016-05-20 17:30:37 -07:00
|
|
|
BreakBeforeBraces: Attach
|
2023-05-31 22:10:53 -07:00
|
|
|
BreakBeforeInlineASMColon: OnlyMultiline
|
2016-05-20 17:30:37 -07:00
|
|
|
BreakBeforeTernaryOperators: true
|
2017-11-11 22:09:51 -08:00
|
|
|
BreakConstructorInitializers: BeforeColon
|
2023-05-31 22:10:53 -07:00
|
|
|
BreakInheritanceList: BeforeColon
|
2017-11-11 22:09:51 -08:00
|
|
|
BreakStringLiterals: true
|
2016-05-20 17:30:37 -07:00
|
|
|
ColumnLimit: 80
|
|
|
|
|
CommentPragmas: '^ IWYU pragma:'
|
2017-11-11 22:09:51 -08:00
|
|
|
CompactNamespaces: false
|
2016-05-20 17:30:37 -07:00
|
|
|
ConstructorInitializerIndentWidth: 4
|
|
|
|
|
ContinuationIndentWidth: 4
|
|
|
|
|
Cpp11BracedListStyle: true
|
|
|
|
|
DerivePointerAlignment: false
|
|
|
|
|
DisableFormat: false
|
2023-05-31 22:10:53 -07:00
|
|
|
EmptyLineAfterAccessModifier: Never
|
|
|
|
|
EmptyLineBeforeAccessModifier: LogicalBlock
|
2016-05-20 17:30:37 -07:00
|
|
|
ExperimentalAutoDetectBinPacking: false
|
2017-11-11 22:09:51 -08:00
|
|
|
FixNamespaceComments: true
|
|
|
|
|
ForEachMacros:
|
|
|
|
|
- foreach
|
|
|
|
|
- Q_FOREACH
|
|
|
|
|
- BOOST_FOREACH
|
2023-05-31 22:10:53 -07:00
|
|
|
IfMacros:
|
|
|
|
|
- KJ_IF_MAYBE
|
2025-11-11 18:05:12 -08:00
|
|
|
IncludeBlocks: Regroup
|
2016-07-10 08:33:27 -07:00
|
|
|
IncludeCategories:
|
2025-11-11 18:05:12 -08:00
|
|
|
# C standard library headers
|
|
|
|
|
#
|
|
|
|
|
# https://en.cppreference.com/w/cpp/header:
|
|
|
|
|
# * C compatibility headers
|
|
|
|
|
# * Special C compatibility headers
|
|
|
|
|
# * Empty C headers
|
|
|
|
|
# * Meaningless C headers
|
|
|
|
|
# * Unsupported C headers
|
|
|
|
|
- Regex: '^<(assert\.h|ctype\.h|errno\.h|fenv\.h|float\.h|inttypes\.h|limits\.h|locale\.h|math\.h|setjmp\.h|signal\.h|stdarg\.h|stddef\.h|stdint\.h|stdio\.h|stdlib\.h|string\.h|time\.h|uchar\.h|wchar\.h|wctype\.h|stdatomic\.h|ccomplex|complex\.h|ctgmath|tgmath\.h|ciso646|cstdalign|cstdbool|iso646\.h|stdalign\.h|stdbool\.h|stdatomic\.h|stdnoreturn\.h|threads\.h)>'
|
|
|
|
|
Priority: 1
|
|
|
|
|
SortPriority: 0
|
|
|
|
|
# Linux system headers
|
|
|
|
|
- Regex: '^<((arpa\/|linux\/|net/|netinet\/|sys\/).*|arm_neon\.h|dirent\.h|dlfcn\.h|fcntl\.h|ifaddrs\.h|jni\.h|libgen\.h|poll\.h|spawn\.h|termios\.h|unistd\.h)>'
|
|
|
|
|
Priority: 1
|
|
|
|
|
SortPriority: 1
|
|
|
|
|
# winsock2.h
|
|
|
|
|
- Regex: '^<winsock2\.h>'
|
|
|
|
|
Priority: 1
|
|
|
|
|
SortPriority: 2
|
|
|
|
|
# windows.h
|
|
|
|
|
- Regex: '^<windows.\h>'
|
|
|
|
|
Priority: 1
|
|
|
|
|
SortPriority: 3
|
|
|
|
|
# Windows def.h headers
|
|
|
|
|
- Regex: '^<(comdef\.h|ws2def\.h|ws2ipdef\.h)>'
|
|
|
|
|
Priority: 1
|
|
|
|
|
SortPriority: 4
|
|
|
|
|
# Windows system headers
|
2025-11-27 17:30:06 -08:00
|
|
|
- Regex: '^<(dbghelp\.h|dbt\.h|delayimp\.h|dshow\.h|io\.h|iphlpapi\.h|ks\.h|ksmedia\.h|memoryapi\.h|mfapi\.h|mferror\.h|mfidl\.h|mfreadwrite\.h|netioapi\.h|ntstatus\.h|shellapi\.h|shlobj\.h|shlwapi\.h|sysinfoapi\.h|windns\.h|windowsx\.h|winternl\.h|ws2tcpip\.h)>'
|
2025-11-11 18:05:12 -08:00
|
|
|
Priority: 1
|
|
|
|
|
SortPriority: 5
|
|
|
|
|
# C++ standard library headers (lowercase and underscores with no .h suffix)
|
|
|
|
|
- Regex: '^<([a-z_]+|cxxabi\.h)>'
|
|
|
|
|
Priority: 2
|
|
|
|
|
SortPriority: 6
|
|
|
|
|
# Other library headers (angle brackets)
|
|
|
|
|
- Regex: '^<.*'
|
|
|
|
|
Priority: 3
|
|
|
|
|
SortPriority: 7
|
|
|
|
|
# Project headers (double quotes)
|
|
|
|
|
- Regex: '^".*'
|
|
|
|
|
Priority: 4
|
|
|
|
|
SortPriority: 8
|
|
|
|
|
IncludeIsMainRegex: '(Test|_bench|_test)?$'
|
2020-06-27 20:39:00 -07:00
|
|
|
IncludeIsMainSourceRegex: ''
|
2023-05-31 22:10:53 -07:00
|
|
|
IndentAccessModifiers: false
|
|
|
|
|
IndentCaseBlocks: false
|
2016-05-20 17:30:37 -07:00
|
|
|
IndentCaseLabels: true
|
2023-05-31 22:10:53 -07:00
|
|
|
IndentExternBlock: AfterExternBlock
|
2020-06-27 20:39:00 -07:00
|
|
|
IndentGotoLabels: true
|
|
|
|
|
IndentPPDirectives: None
|
2023-05-31 22:10:53 -07:00
|
|
|
IndentRequiresClause: true
|
2016-05-20 17:30:37 -07:00
|
|
|
IndentWidth: 2
|
|
|
|
|
IndentWrappedFunctionNames: false
|
2023-05-31 22:10:53 -07:00
|
|
|
InsertBraces: false
|
|
|
|
|
InsertNewlineAtEOF: false
|
|
|
|
|
InsertTrailingCommas: None
|
|
|
|
|
IntegerLiteralSeparator:
|
|
|
|
|
Binary: 0
|
|
|
|
|
BinaryMinDigits: 0
|
|
|
|
|
Decimal: 0
|
|
|
|
|
DecimalMinDigits: 0
|
|
|
|
|
Hex: 0
|
|
|
|
|
HexMinDigits: 0
|
2017-11-11 22:09:51 -08:00
|
|
|
JavaScriptQuotes: Leave
|
|
|
|
|
JavaScriptWrapImports: true
|
2016-05-20 17:30:37 -07:00
|
|
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
2024-03-18 23:11:20 -07:00
|
|
|
KeepEmptyLinesAtEOF: false
|
2023-05-31 22:10:53 -07:00
|
|
|
LambdaBodyIndentation: Signature
|
|
|
|
|
LineEnding: DeriveLF
|
2016-05-20 17:30:37 -07:00
|
|
|
MacroBlockBegin: ''
|
|
|
|
|
MacroBlockEnd: ''
|
2023-12-31 02:22:46 +11:00
|
|
|
Macros:
|
|
|
|
|
- 'HAL_ENUM(name)=enum name'
|
2016-05-20 17:30:37 -07:00
|
|
|
MaxEmptyLinesToKeep: 1
|
|
|
|
|
NamespaceIndentation: None
|
2020-06-27 20:39:00 -07:00
|
|
|
ObjCBinPackProtocolList: Never
|
2016-05-20 17:30:37 -07:00
|
|
|
ObjCBlockIndentWidth: 2
|
2023-05-31 22:10:53 -07:00
|
|
|
ObjCBreakBeforeNestedBlockParam: true
|
2016-05-20 17:30:37 -07:00
|
|
|
ObjCSpaceAfterProperty: false
|
2020-06-27 20:39:00 -07:00
|
|
|
ObjCSpaceBeforeProtocolList: true
|
2023-05-31 22:10:53 -07:00
|
|
|
PackConstructorInitializers: NextLine
|
2017-11-11 22:09:51 -08:00
|
|
|
PenaltyBreakAssignment: 2
|
2016-05-20 17:30:37 -07:00
|
|
|
PenaltyBreakBeforeFirstCallParameter: 1
|
|
|
|
|
PenaltyBreakComment: 300
|
|
|
|
|
PenaltyBreakFirstLessLess: 120
|
2023-05-31 22:10:53 -07:00
|
|
|
PenaltyBreakOpenParenthesis: 0
|
2016-05-20 17:30:37 -07:00
|
|
|
PenaltyBreakString: 1000
|
2020-06-27 20:39:00 -07:00
|
|
|
PenaltyBreakTemplateDeclaration: 10
|
2016-05-20 17:30:37 -07:00
|
|
|
PenaltyExcessCharacter: 1000000
|
2023-05-31 22:10:53 -07:00
|
|
|
PenaltyIndentedWhitespace: 0
|
2016-05-20 17:30:37 -07:00
|
|
|
PenaltyReturnTypeOnItsOwnLine: 200
|
|
|
|
|
PointerAlignment: Left
|
2023-05-31 22:10:53 -07:00
|
|
|
PPIndentWidth: -1
|
|
|
|
|
QualifierAlignment: Leave
|
2020-06-27 20:39:00 -07:00
|
|
|
RawStringFormats:
|
|
|
|
|
- Language: Cpp
|
|
|
|
|
Delimiters:
|
|
|
|
|
- cc
|
|
|
|
|
- CC
|
|
|
|
|
- cpp
|
|
|
|
|
- Cpp
|
|
|
|
|
- CPP
|
|
|
|
|
- 'c++'
|
|
|
|
|
- 'C++'
|
|
|
|
|
CanonicalDelimiter: ''
|
|
|
|
|
BasedOnStyle: google
|
|
|
|
|
- Language: TextProto
|
|
|
|
|
Delimiters:
|
|
|
|
|
- pb
|
|
|
|
|
- PB
|
|
|
|
|
- proto
|
|
|
|
|
- PROTO
|
|
|
|
|
EnclosingFunctions:
|
|
|
|
|
- EqualsProto
|
|
|
|
|
- EquivToProto
|
|
|
|
|
- PARSE_PARTIAL_TEXT_PROTO
|
|
|
|
|
- PARSE_TEST_PROTO
|
|
|
|
|
- PARSE_TEXT_PROTO
|
|
|
|
|
- ParseTextOrDie
|
|
|
|
|
- ParseTextProtoOrDie
|
2023-05-31 22:10:53 -07:00
|
|
|
- ParseTestProto
|
|
|
|
|
- ParsePartialTestProto
|
|
|
|
|
CanonicalDelimiter: pb
|
2020-06-27 20:39:00 -07:00
|
|
|
BasedOnStyle: google
|
2023-05-31 22:10:53 -07:00
|
|
|
ReferenceAlignment: Pointer
|
2016-05-20 17:30:37 -07:00
|
|
|
ReflowComments: true
|
2023-05-31 22:10:53 -07:00
|
|
|
RemoveBracesLLVM: false
|
2024-03-18 23:11:20 -07:00
|
|
|
RemoveParentheses: Leave
|
2023-05-31 22:10:53 -07:00
|
|
|
RemoveSemicolon: false
|
|
|
|
|
RequiresClausePosition: OwnLine
|
|
|
|
|
RequiresExpressionIndentation: OuterScope
|
|
|
|
|
SeparateDefinitionBlocks: Leave
|
|
|
|
|
ShortNamespaceLines: 1
|
2025-11-11 18:05:12 -08:00
|
|
|
SortIncludes: true
|
2023-05-31 22:10:53 -07:00
|
|
|
SortJavaStaticImport: Before
|
|
|
|
|
SortUsingDeclarations: LexicographicNumeric
|
2016-05-20 17:30:37 -07:00
|
|
|
SpaceAfterCStyleCast: false
|
2020-06-27 20:39:00 -07:00
|
|
|
SpaceAfterLogicalNot: false
|
2017-11-11 22:09:51 -08:00
|
|
|
SpaceAfterTemplateKeyword: true
|
2023-05-31 22:10:53 -07:00
|
|
|
SpaceAroundPointerQualifiers: Default
|
2016-05-20 17:30:37 -07:00
|
|
|
SpaceBeforeAssignmentOperators: true
|
2023-05-31 22:10:53 -07:00
|
|
|
SpaceBeforeCaseColon: false
|
2020-06-27 20:39:00 -07:00
|
|
|
SpaceBeforeCpp11BracedList: false
|
|
|
|
|
SpaceBeforeCtorInitializerColon: true
|
|
|
|
|
SpaceBeforeInheritanceColon: true
|
2024-03-18 23:11:20 -07:00
|
|
|
SpaceBeforeJsonColon: false
|
2016-05-20 17:30:37 -07:00
|
|
|
SpaceBeforeParens: ControlStatements
|
2023-05-31 22:10:53 -07:00
|
|
|
SpaceBeforeParensOptions:
|
|
|
|
|
AfterControlStatements: true
|
|
|
|
|
AfterForeachMacros: true
|
|
|
|
|
AfterFunctionDefinitionName: false
|
|
|
|
|
AfterFunctionDeclarationName: false
|
|
|
|
|
AfterIfMacros: true
|
|
|
|
|
AfterOverloadedOperator: false
|
|
|
|
|
AfterRequiresInClause: false
|
|
|
|
|
AfterRequiresInExpression: false
|
|
|
|
|
BeforeNonEmptyParentheses: false
|
2020-06-27 20:39:00 -07:00
|
|
|
SpaceBeforeRangeBasedForLoopColon: true
|
2023-05-31 22:10:53 -07:00
|
|
|
SpaceBeforeSquareBrackets: false
|
2020-06-27 20:39:00 -07:00
|
|
|
SpaceInEmptyBlock: false
|
2016-05-20 17:30:37 -07:00
|
|
|
SpacesBeforeTrailingComments: 2
|
2023-05-31 22:10:53 -07:00
|
|
|
SpacesInAngles: Never
|
2016-05-20 17:30:37 -07:00
|
|
|
SpacesInContainerLiterals: true
|
2023-05-31 22:10:53 -07:00
|
|
|
SpacesInLineCommentPrefix:
|
|
|
|
|
Minimum: 1
|
|
|
|
|
Maximum: -1
|
2024-03-18 23:11:20 -07:00
|
|
|
SpacesInParens: Never
|
|
|
|
|
SpacesInParensOptions:
|
|
|
|
|
InCStyleCasts: false
|
|
|
|
|
InConditionalStatements: false
|
|
|
|
|
InEmptyParentheses: false
|
|
|
|
|
Other: false
|
2016-05-20 17:30:37 -07:00
|
|
|
SpacesInSquareBrackets: false
|
2023-02-20 10:54:55 -08:00
|
|
|
Standard: c++20
|
2024-03-18 23:11:20 -07:00
|
|
|
StatementAttributeLikeMacros:
|
|
|
|
|
- Q_EMIT
|
2020-06-27 20:39:00 -07:00
|
|
|
StatementMacros:
|
|
|
|
|
- Q_UNUSED
|
|
|
|
|
- QT_REQUIRE_VERSION
|
2016-05-20 17:30:37 -07:00
|
|
|
TabWidth: 8
|
|
|
|
|
UseTab: Never
|
2024-03-18 23:11:20 -07:00
|
|
|
VerilogBreakBetweenInstancePorts: true
|
2023-05-31 22:10:53 -07:00
|
|
|
WhitespaceSensitiveMacros:
|
|
|
|
|
- BOOST_PP_STRINGIZE
|
|
|
|
|
- CF_SWIFT_NAME
|
|
|
|
|
- NS_SWIFT_NAME
|
|
|
|
|
- PP_STRINGIZE
|
|
|
|
|
- STRINGIZE
|
2016-05-20 17:30:37 -07:00
|
|
|
...
|