[PATCH] D129443: [clang-format] Add option for aligning requires clause body

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 13 04:22:27 PDT 2022


HazardyKnusperkeks added inline comments.


================
Comment at: clang/lib/Format/Format.cpp:1304
   LLVMStyle.RequiresClausePosition = FormatStyle::RCPS_OwnLine;
+  LLVMStyle.RequiresExpressionIndentation = FormatStyle::REI_Keyword;
   LLVMStyle.SeparateDefinitionBlocks = FormatStyle::SDS_Leave;
----------------
owenpan wrote:
> HazardyKnusperkeks wrote:
> > owenpan wrote:
> > > Delete it.
> > Why delete?
> > Set it to OuterScope.
> > Why delete?
> > Set it to OuterScope.
> 
> Cuz OuterScope is the default. :)
The default is uninitialized. Not setting anything here is undefined behavior.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129443/new/

https://reviews.llvm.org/D129443



More information about the cfe-commits mailing list