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

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 13 15:54:21 PDT 2022


owenpan 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;
----------------
HazardyKnusperkeks wrote:
> 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.
@HazardyKnusperkeks you are right!


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