--- # .clang-format - How to format C files in sbc-harness # # Copyright (C) 2024-2025 Luke T. Shumaker # SPDX-License-Identifier: AGPL-3.0-or-later # https://releases.llvm.org/19.1.0/tools/clang/docs/ClangFormatStyleOptions.html Language: Cpp # "C" didn't become a value until clang 20; I'm still on clang 19.1 BasedOnStyle: LLVM LineEnding: LF ColumnLimit: 0 # Indentation UseTab: AlignWithSpaces TabWidth: 8 IndentWidth: 8 ContinuationIndentWidth: 8 IndentCaseLabels: false # Brace style AllowShortCaseLabelsOnASingleLine: true AllowShortIfStatementsOnASingleLine: AllIfsAndElse BreakBeforeBraces: Attach Cpp11BracedListStyle: false # Alignment AlignConsecutiveAssignments: Enabled: true AcrossEmptyLines: false AcrossComments: true PadOperators: true AlignConsecutiveDeclarations: Enabled: true AcrossEmptyLines: false AcrossComments: true AlignFunctionPointers: true AlignConsecutiveShortCaseStatements: Enabled: true # Preprocessor AlignConsecutiveMacros: Enabled: true AcrossEmptyLines: false AcrossComments: true AlignEscapedNewlines: Left IndentPPDirectives: BeforeHash PPIndentWidth: -1 # inherit from IndentWidth SortIncludes: CaseSensitive