On Wed, Sep 27, 2017 at 7:34 AM, Mike Hommey <m...@glandium.org> wrote: > And then you end up with something like: > > class Foo { > Type MethodA() { do_something(); } > Type MethodB() > { > do_something_that_happens_to_be_long_enough_not_to_fit_on_the_same_line(); > } > Type MethodC() { do_something_else(); } > }; > > And I find that distracting. Is there a pref to make it not reformat things > that look reasonable already, although not "optimally" so?
Not in my experience. The example above is governed by AllowShortFunctionsOnASingleLine [1], which doesn't have a "leave it be" option. You get all or nothing generally. In the above case you probably want consistency and so A and C should match B, but it's not that smart. I had the same problem with some long statements. The way I "fixed" that was to add comments. You could do the same if you cared. [1] http://clang.llvm.org/docs/ClangFormatStyleOptions.html _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform