From 1fe056570220411bdb409c26e7580443a7bd9f4a Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Tue, 21 Apr 2026 23:03:16 +0800 Subject: feat: add .clang-format and .clang-tidy configuration files for code formatting and linting --- na/.clang-format | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 na/.clang-format (limited to 'na/.clang-format') diff --git a/na/.clang-format b/na/.clang-format new file mode 100644 index 0000000..141e1e2 --- /dev/null +++ b/na/.clang-format @@ -0,0 +1,35 @@ +Language: Cpp +Standard: c++23 +BasedOnStyle: Google + +# Core Formatting +IndentWidth: 4 +ColumnLimit: 100 +TabWidth: 4 +UseTab: Never + +# Pointers and References +PointerAlignment: Left +ReferenceAlignment: Left + +# Includes +SortIncludes: true + +# Alignment +AlignConsecutiveAssignments: false +AlignConsecutiveDeclarations: false +AlignConsecutiveMacros: true + +# Control Statements +BreakBeforeBraces: Attach +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AllowShortFunctionsOnASingleLine: Empty + +# Spaces +SpaceBeforeParens: ControlStatements +SpaceInEmptyParentheses: false +SpacesInAngles: false +SpacesInParentheses: false +SpacesInSquareBrackets: false +SpaceAfterTemplateKeyword: true -- cgit v1.2.3