clang-format and checkpatch have contradictory requirements #78214
Labels
area: Coding Guidelines
Coding guidelines and style
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Describe the bug
After running
clang-format
ondrivers/serial/uart_nrfx_uarte.c
(#78179) I'm getting checkpatch errors.There are 2 types of errors:
SPACING: space prohibited before that close parenthesis ')'
clang-format added space afterVAL,
in a statement like belowTABSTOP: Statements should start on a tabstop
clang-format reformatted macro with code generation in a way that is not accepted by checkpath.To Reproduce
drivers/serial/uart_nrfx_uarte.c
and then run checkpatchExpected behavior
Running clang-format shall not violate checkpatch rules.
Impact
Red CI after running clang-format. Manual code adjustment must be used which discourage user from using clang-format.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: