[clang] [clang-format] Change LLVM style to BreakAfterAttributes == ABS_Leave (PR #70360)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 27 02:30:10 PDT 2023
owenca wrote:
> [Google](https://google.github.io/styleguide/cppguide.html) is the only one mentioning attributes:
>
> > Attributes, and macros that expand to attributes, appear at the very beginning of the function declaration or definition, before the return type:
> > ```c++
> > ABSL_ATTRIBUTE_NOINLINE void ExpensiveFunction();
> > [[nodiscard]] bool IsOk();
> > ```
>
> I'm not sure which `BreakAfterAttributes` option this boils down to, but I don't mind setting it back to `Never` for Google style if reviewers would like me to do so.
I think `Leave` would work.
https://github.com/llvm/llvm-project/pull/70360
More information about the cfe-commits
mailing list