Re: [PATCH v3] devtools: add .clang-format file

2024-05-06 Thread Abdullah Ömer Yamaç
On Sun, May 5, 2024 at 11:38 PM Stephen Hemminger < step...@networkplumber.org> wrote: > On Sun, 5 May 2024 22:42:57 +0300 > Abdullah Ömer Yamaç wrote: > > > > Also, this looks wrong. The initialized arrays looked better before. > > > > > > > > > -static const char *tuntap_types[ETH_TUNTAP_TYPE_

Re: [PATCH v3] devtools: add .clang-format file

2024-05-05 Thread Stephen Hemminger
On Sun, 5 May 2024 22:42:57 +0300 Abdullah Ömer Yamaç wrote: > > Also, this looks wrong. The initialized arrays looked better before. > > > > > > -static const char *tuntap_types[ETH_TUNTAP_TYPE_MAX] = { > > - "UNKNOWN", "TUN", "TAP" > > -}; > > +static const char *tuntap_types[ETH_TUNTAP_

Re: [PATCH v3] devtools: add .clang-format file

2024-05-05 Thread Abdullah Ömer Yamaç
On Sun, May 5, 2024 at 7:21 PM Stephen Hemminger wrote: > On Sat, 4 May 2024 19:18:37 + > Abdullah Ömer Yamaç 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 spec

Re: [PATCH v3] devtools: add .clang-format file

2024-05-05 Thread Abdullah Ömer Yamaç
On Sun, May 5, 2024 at 7:18 PM Stephen Hemminger wrote: > On Sat, 4 May 2024 19:18:37 + > Abdullah Ömer Yamaç 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 spec

Re: [PATCH v3] devtools: add .clang-format file

2024-05-05 Thread Stephen Hemminger
On Sat, 4 May 2024 19:18:37 + Abdullah Ömer Yamaç 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 a

Re: [PATCH v3] devtools: add .clang-format file

2024-05-05 Thread Stephen Hemminger
On Sat, 4 May 2024 19:18:37 + Abdullah Ömer Yamaç 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 a

[PATCH v3] devtools: add .clang-format file

2024-05-04 Thread Abdullah Ömer Yamaç
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