Skip to content

Instantly share code, notes, and snippets.

@patrislav1
Last active April 2, 2024 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrislav1/bf31cb19e225338c1f6a909b3836155a to your computer and use it in GitHub Desktop.
Save patrislav1/bf31cb19e225338c1f6a909b3836155a to your computer and use it in GitHub Desktop.
clang-format configuration
---
BasedOnStyle: Chromium
IndentWidth: 4
IncludeCategories:
- Regex: '<[a-zA-Z0-9_]+>' # standard headers (no extension)
Priority: 2
- Regex: '<[a-zA-Z0-9/]+\.(h|hpp)>' # library headers (with extension)
Priority: 3
- Regex: '.*'
Priority: 4
IncludeBlocks: Regroup
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
BinPackArguments: false
BinPackParameters: false
ExperimentalAutoDetectBinPacking: false
BreakBeforeBraces: WebKit
BreakConstructorInitializers: BeforeComma
ReflowComments: false
ColumnLimit: 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment