From 276a8b9bea6d3e6b01a7ebfd6594c80b3a187eae Mon Sep 17 00:00:00 2001 From: "Wood, Tony" Date: Tue, 20 Oct 2026 11:38:02 -0400 Subject: [PATCH] create a .clang-format --- .clang-format | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..c37a0d2d --- /dev/null +++ b/.clang-format @@ -0,0 +1,35 @@ +BasedOnStyle: LLVM + +IndentWidth: 4 +ContinuationIndentWidth: 4 +TabWidth: 4 +UseTab: Never +ColumnLimit: 100 + +BreakBeforeBraces: Allman +AllowShortBlocksOnASingleLine: Never +AllowShortFunctionsOnASingleLine: Empty +AllowShortIfStatementsOnASingleLine: Never +AllowShortLoopsOnASingleLine: false + +PointerAlignment: Left +ReferenceAlignment: Left +DerivePointerAlignment: false +AccessModifierOffset: -4 +NamespaceIndentation: None +IndentCaseLabels: true + +SortIncludes: CaseSensitive +IncludeBlocks: Regroup +# The matching implementation header automatically receives priority 0. +IncludeCategories: + # Known third-party headers, whether quoted or enclosed in angle brackets. + - Regex: '^[<"](Python\.h|structmember\.h|numpy/[^">]+|mpi\.h|fftw3\.h)[">]$' + Priority: 2 + # Standard library and system headers. + - Regex: '^<.*>$' + Priority: 1 + # Project/local headers. + - Regex: '.*' + Priority: 3 +ReflowComments: false