Joe Perches via llvm-dev
2019-Sep-12 23:26 UTC
[llvm-dev] clang-format and 'clang-format on' and 'clang-format off'
On Thu, 2019-09-12 at 23:58 +0200, Miguel Ojeda wrote:> On Thu, Sep 12, 2019 at 11:08 PM Joe Perches <joe at perches.com> wrote:> > Marking sections _no_auto_format_ isn't really a > > good solution is it? > > I am thinking about special tables that are hand-crafted or very > complex macros. For those, yes, I think it is a fine solution.Can the 'clang-format on/off' trigger be indirected into something non-clang specific via a macro? Not every project is going to use only the clang-format tool.
Miguel Ojeda via llvm-dev
2019-Sep-15 18:25 UTC
[llvm-dev] clang-format and 'clang-format on' and 'clang-format off'
On Fri, Sep 13, 2019 at 1:26 AM Joe Perches <joe at perches.com> wrote:> > Not every project is going to use only the clang-format tool.Why? The end goal would be to enforce all code to be running under the same formatting rules (which, in practice, means the same tool at the moment). Note that you can use clang-format with most editors (including vim, emacs, VS, VSCode, XCode, Sublime, Atom...). Cheers, Miguel