|
From: Nicholas N. <n.n...@gm...> - 2023-04-20 23:06:24
|
On Fri, 21 Apr 2023 at 07:06, Bart Van Assche <bva...@ac...> wrote: > No matter how > much time is spent on tuning the .clang-format file, there will always > be code for which the formatting is made worse by clang-format than the > existing code. > It's true that there are rare cases where an auto-formatter does a bad job, such as code in tabular form. Fortunately there's an easy workaround for that too: you just put `// clang-format off` at the start of the block and `// clang-format on` at the end of the block. Nick |