[PATCH v4] devtools: add .clang-format file
Stephen Hemminger
stephen at networkplumber.org
Mon May 13 17:55:17 CEST 2024
On Mon, 13 May 2024 14:08:07 +0100
Ferruh Yigit <ferruh.yigit at amd.com> wrote:
> 2. Double tab indentation vs parenthesis align
> if (iter->bus != NULL &&
> - /* not in middle of rte_eth_dev iteration, */
> - iter->class_device == NULL) {
> + /* not in middle of rte_eth_dev iteration, */
> + iter->class_device == NULL) {
>
> DPDK coding guide suggests double tab, but also accepts alignment by
> spaces. But as far as I can see most of code has double tab.
> Majority of the diff caused because of this rule.
I personally am more used the aligned style, and most tools support that.
The DPDK one is unique (not done by most other projects). So can we just
keep the kernel (what is this clang-format) version.
More information about the dev
mailing list