Files
RASCSI/cpp/.clang-format
Daniel Markstedt 6b7d140351 Reintroduce clang-format rules and remove IDE specific configuration
This reverts a previous change where configurations for the Eclipse IDE specifically was introduced.

I think it's more important to have an IDE agnostic formatting framework, which clang-format provides

Example command for formatting all C++ source code, as run from within the cpp dir:

find . -iname '*.h' -o -iname '*.cpp' | xargs clang-format -i
2025-12-24 09:53:51 +01:00

15 lines
392 B
YAML

BasedOnStyle: Microsoft
AlignConsecutiveAssignments: Consecutive
AlignEscapedNewlines: Left
AlignTrailingComments: true
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Empty
AlwaysBreakAfterReturnType: None
BreakBeforeBraces: Linux
ColumnLimit: 120
IncludeBlocks: Preserve
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: false
PointerAlignment: Left
SortIncludes: false