Skip to content

Commit 9bda3b9

Browse files
committed
Seems formatting file works best as a dotfile in the main repo folder...
1 parent d4cdc24 commit 9bda3b9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ BasedOnStyle: GNU
22
IndentWidth: 2
33
UseTab: Never
44
BreakBeforeBraces: Attach
5-
ColumnLimit: 120
5+
ColumnLimit: 160
66
DerivePointerAlignment: false
77
PointerAlignment: Left
88
IndentPPDirectives: BeforeHash

devel/bin/mccode-clangformat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ def main():
230230

231231
# Warn if no .clang-format file is found in this repo tree
232232

233-
# Determine the directory containing this script (…/McCode/devel/)
234-
script_dir = Path(__file__).resolve().parent.parent
235-
style_file = script_dir / "clang-format"
233+
# Determine top-level McCode directory
234+
script_dir = Path(__file__).resolve().parent.parent.parent
235+
style_file = script_dir / ".clang-format"
236236
print(style_file)
237237

238238
# Require .clang-format to exist right next to this script

0 commit comments

Comments
 (0)