[PATCH v6] devtools: add .clang-format file
Stephen Hemminger
stephen at networkplumber.org
Tue Oct 15 05:12:59 CEST 2024
On Mon, 14 Oct 2024 22:15:45 +0000
Abdullah Ömer Yamaç <aomeryamac at gmail.com> wrote:
> clang-format is a tool to format C/C++/Objective-C code. It can be used
> to reformat code to match a given coding style, or to ensure that code
> adheres to a specific coding style. It helps to maintain a consistent
> coding style across the DPDK codebase.
>
> .clang-format file overrides the default style options provided by
> clang-format and large set of IDEs and text editors support it.
>
> Signed-off-by: Abdullah Ömer Yamaç <aomeryamac at gmail.com>
Looks good, as an experiment I ran some files through clang-format and tried
to make sure that clang-format and checkpatch do not disagree.
One that showed up was that clang-format liked to leave open ended functions.
CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#407: FILE: drivers/net/tap/rte_eth_tap.c:593:
+ *l4_cksum = rte_ipv4_udptcp_cksum_mbuf(
More information about the dev
mailing list