We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9525841 commit 3e305b9Copy full SHA for 3e305b9
2 files changed
.clang-format
@@ -0,0 +1,13 @@
1
+BasedOnStyle: Google
2
+Standard: Cpp11
3
+AccessModifierOffset: -2
4
+AllowShortFunctionsOnASingleLine: Inline
5
+ColumnLimit: 100
6
+CommentPragmas: NOLINT:.*
7
+DerivePointerAlignment: false
8
+IncludeBlocks: Preserve
9
+IndentWidth: 4
10
+ContinuationIndentWidth: 8
11
+PointerAlignment: Left
12
+TabWidth: 4
13
+UseTab: Never
.pre-commit-config.yaml
@@ -8,6 +8,11 @@ repos:
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
+ - repo: https://github.com/pre-commit/mirrors-clang-format
+ rev: v21.1.8
+ hooks:
14
+ - id: clang-format
15
+ types_or: [c, c++]
16
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
17
rev: v2.15.0
18
hooks:
0 commit comments