Skip to content

Commit 62ef47f

Browse files
committed
Feat: clang-format json files too
1 parent c71ac3e commit 62ef47f

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.clang-format

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
---
2+
BasedOnStyle: LLVM
3+
IndentWidth: 2
4+
---
25
Language: Cpp
36
AccessModifierOffset: -2
47
AlignAfterOpenBracket: Align

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/cpp
33

44
{

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ repos:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
99
- id: check-yaml
10+
exclude: ^\.clang-(format|tidy)$
1011
- id: check-added-large-files
1112

1213
# Clang-format for C++

0 commit comments

Comments
 (0)