kiso icon indicating copy to clipboard operation
kiso copied to clipboard

clang-tidy: enable readability-inconsistent-declaration-parameter-name.Strict

Open HansUweRempler opened this issue 5 years ago • 0 comments

Issue by elbosch Thursday Dec 12, 2019 at 14:01 GMT Originally opened as https://github.com/Bosch-AE-SW/cddk-oss/issues/427


Is your feature request related to a problem? Please describe. We want to enable the feature: readability-inconsistent-declaration-parameter-name.Strict

Error warning: function 'UART_AbortReceive' has a definition with different parameter names Stacktrace static void UART_AbortReceive(struct MCU_UART_S *uart_ptr); ^ ~~~~~~~~~ uart /home/jenkins/workspace/re-clang-tidy-readability-checks/core/essentials/source/mcu/stm32/stm32l4/UART.c:481:6: note: the definition seen here void UART_AbortReceive(struct MCU_UART_S *uart)

Describe the solution you'd like set the option value in .clang-tidy to '1' and fix the reported warnings in each affected component. e.g. in above example fix the name uart_ptr to uart in the declaration.

Additional context most probably the F7 version may have the same problems?

HansUweRempler avatar Jan 17 '20 10:01 HansUweRempler