Skip to content

Commit

Permalink
more changes to clang-tidy, added BSP to checked files
Browse files Browse the repository at this point in the history
  • Loading branch information
IshDeshpa committed Jun 19, 2023
1 parent a831269 commit b2376f2
Show file tree
Hide file tree
Showing 3 changed files with 704 additions and 27 deletions.
10 changes: 8 additions & 2 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -82,24 +82,30 @@ FormatStyle: file
CheckOptions:
- key: bugprone-assert-side-effect.AssertMacros
value: assert
- key: readability-identifier-naming.FunctionIgnoredRegexp
value: "(CAN*|BPS*)"
- key: readability-identifier-naming.EnumCase
value: Camel_Snake_Case
- key: readability-identifier-naming.FunctionCase
value: camelBack
- key: readability-identifier-naming.FunctionIgnoredRegexp
value: "(CAN.*|OS.*)"
- key: readability-identifier-naming.GlobalFunctionCase
value: Camel_Snake_Case
- key: readability-identifier-naming.ParameterCase
value: lower_case
- key: readability-identifier-naming.ParameterIgnoredRegexp
value: "(CAN.*|BPS.*|OS.*)"
- key: readability-identifier-naming.UnionCase
value: aNy_CasE
- key: readability-identifier-naming.VariableCase
value: camelBack
- key: readability-identifier-naming.VariableIgnoredRegexp
value: "(CAN.*|BPS.*|OS.*)"
- key: readability-identifier-naming.GlobalVariableCase
value: Camel_Snake_Case
- key: TypedefSuffix
value: _t
- key: readability-identifier-naming.IgnoreMainLikeFunctions
value: 1
- key: readability-magic-numbers.IgnoredIntegerValues
value: 0;1;2;3;4;100
...
4 changes: 3 additions & 1 deletion BSP/STM32F413/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,11 @@ $(BUILD_DIR):
#######################################
# tidy
#######################################
TIDYSOURCES = $(filter-out $(addsuffix /%,../../RTOS ../../BSP/STM32F413 ../../CMSIS), $(C_SOURCES)) \
TIDYSOURCES = $(filter-out $(addsuffix /%,../../RTOS ../../BSP/STM32F413/STM32F4xx_StdPeriph_Driver ../../CMSIS), $(C_SOURCES)) \
$(wildcard ../../Apps/Inc/*.h) \
$(wildcard ../../Drivers/Inc/*.h) \
$(wildcard ../../Config/Inc/*.h) \
$(wildcard ../../BSP/Inc/*.h) \

ifneq ($(LINT), none)
TIDYSOURCES := $(shell find $(TIDYSOURCES) -regex .*/$(LINT))
Expand Down
Loading

0 comments on commit b2376f2

Please sign in to comment.