Skip to content

Commit e665332

Browse files
committed
Updated clang-format and pre-commit to use the style of the BACnet Stack library.
1 parent 4c0d9a4 commit e665332

File tree

17 files changed

+1009
-1011
lines changed

17 files changed

+1009
-1011
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ repos:
4141
- id: remove-tabs
4242
name: Remove tabs (4 spaces)
4343
args: ["--whitespaces-count", "4"]
44-
exclude: \.(yaml|yml|html|htm|sln|atsln|layout)$|Makefile|\.(mgw|mak|MAK)$|Dockerfile$
44+
exclude: \.(c|h|yaml|yml|overlay|html|htm|sln|atsln|layout|rst)$|Makefile|\.(mgw|mak|MAK)|Dockerfile$
4545
- id: remove-tabs
4646
name: Remove tabs (2 spaces)
4747
args: ["--whitespaces-count", "2"]
48-
files: '.*\.(yaml|yml|html|htm)|Dockerfile$'
48+
files: '.*\.(yaml|yml|overlay|html|htm)|Dockerfile$'
4949

5050
- repo: https://github.com/pre-commit/mirrors-clang-format
5151
rev: v20.1.5

zephyr/.clang-format

Lines changed: 0 additions & 94 deletions
This file was deleted.

zephyr/include/bacnet-config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#ifndef BACNET_PORTS_ZEPHYR_BACNET_CONFIG_H
99
#define BACNET_PORTS_ZEPHYR_BACNET_CONFIG_H
1010

11-
#if ! defined BACNET_CONFIG_H || ! BACNET_CONFIG_H
11+
#if !defined BACNET_CONFIG_H || !BACNET_CONFIG_H
1212
#error bacnet-config.h included outside of BACNET_CONFIG_H control
1313
#endif
1414

0 commit comments

Comments
 (0)