Skip to content

Commit 8b7d724

Browse files
committed
Specify both C and Cpp
1 parent 8c4510c commit 8b7d724

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.clang-format

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# A clang-format style that approximates Python's PEP 7
22
# Useful for IDE integration
3+
Language: C
4+
BasedOnStyle: Google
5+
AlwaysBreakAfterReturnType: All
6+
AllowShortIfStatementsOnASingleLine: false
7+
AlignAfterOpenBracket: BlockIndent
8+
BinPackArguments: false
9+
BinPackParameters: false
10+
BreakBeforeBraces: Attach
11+
ColumnLimit: 88
12+
DerivePointerAlignment: false
13+
IndentGotoLabels: false
14+
IndentWidth: 4
15+
PointerAlignment: Right
16+
ReflowComments: true
17+
SortIncludes: false
18+
SpaceBeforeParens: ControlStatements
19+
SpacesInParentheses: false
20+
TabWidth: 4
21+
UseTab: Never
22+
---
23+
Language: Cpp
324
BasedOnStyle: Google
425
AlwaysBreakAfterReturnType: All
526
AllowShortIfStatementsOnASingleLine: false

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ repos:
4444
- id: check-json
4545
- id: check-toml
4646
- id: check-yaml
47+
args: [--allow-multiple-documents]
4748
- id: end-of-file-fixer
4849
exclude: ^Tests/images/
4950
- id: trailing-whitespace

0 commit comments

Comments
 (0)