+1. Wholesale reformatting of existing files is to be avoided.
Support for per-file or per-directory automated code formatting would be great! Religious debates about coding style will be resolved one day after there’s peace in Palestine. Let’s not go there. OK? Thanks... Dave From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Damjan Marion via lists.fd.io Sent: Thursday, December 17, 2020 1:29 PM To: Jon Loeliger via lists.fd.io <jdl=netgate....@lists.fd.io> Cc: vpp-dev <vpp-dev@lists.fd.io> Subject: Re: [vpp-dev] move to clang-format On 17.12.2020., at 19:06, Jon Loeliger via lists.fd.io <jdl=netgate....@lists.fd.io <mailto:jdl=netgate....@lists.fd.io> > wrote: On Sun, Dec 13, 2020 at 6:15 AM Damjan Marion via lists.fd.io <http://lists.fd.io> <dmarion=me....@lists.fd.io <mailto:me....@lists.fd.io> > wrote: Hi, I was playing a bit with clang-format as replacement to gnu indent which we use today[1]. While it is impossible to render exact same result like gnu indent, good thing is that clang-format can be used only on lines which are changed in the diff so no major reformat is needed. My patch deos exactly that. I would welcome any change away from the absolutely horrendous Gnu coding style! And what would be good alternative in your view? I doubt we want to reformat whole codebase, eventually allow alternative for new files in the repo... — Damjan
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#18392): https://lists.fd.io/g/vpp-dev/message/18392 Mute This Topic: https://lists.fd.io/mt/78925374/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-