jmr wrote: > > It seems like the rule should be that if the statement formats as one line > > and it's short enough to put the whole function on one line, then it should > > all be one line with short functions. > > That is definitely not the intention of back when we introduced this - the > "simple" is load bearing.
It's surprising ot me since it's called "short", not "simple". All I see in the docs is "containing at most one statement". https://clang.llvm.org/docs/ClangFormatStyleOptions.html#allowshortfunctionsonasingleline What's a better place to have this discussion? https://github.com/llvm/llvm-project/pull/234728 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
