Files
raytracer_challenge/.clang-format
NADAL Jean-Baptiste f7a450e736 [FIX] Fix Clang format
2024-02-08 18:48:04 +01:00

36 lines
963 B
YAML

---
# We'll use defaults from the LLVM style, but with 4 columns indentation.
BasedOnStyle: LLVM
IndentWidth: 4
# use \n instead of \r\n
UseCRLF: true
# spaces, not tabs!
UseTab: Never
---
Language: Cpp
Standard: c++17
AccessModifierOffset: -4
# Force pointers to the type for C++.
DerivePointerAlignment: false
PointerAlignment: Right
# Use 100 columns
ColumnLimit: 120
AlignConsecutiveAssignments: Consecutive
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Never
AlwaysBreakAfterReturnType: None
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
SplitEmptyFunction: true
BreakBeforeBraces: Allman
SeparateDefinitionBlocks: Always
NamespaceIndentation: All
IndentAccessModifiers: false
ReferenceAlignment: Right
BreakConstructorInitializers: AfterColon
AlignArrayOfStructures: Right
PackConstructorInitializers: CurrentLine
AlignConsecutiveMacros: true
...