[clang] [clang-format] Allow one indent level before explicit access labels (PR #227704)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 30 12:57:13 PDT 2026
================
@@ -377,7 +378,18 @@ bool UnwrappedLineParser::parseLevel(const FormatToken *OpeningBrace,
Kind = tok::r_brace;
auto ParseDefault = [this, OpeningBrace, IfKind, &IfLBrace, &HasDoWhile,
- &HasLabel, &StatementCount] {
+ &HasLabel, &StatementCount,
+ SeenExplicitAccessModifier] {
+ const bool IsQtAccessLabel =
+ SeenExplicitAccessModifier && !*SeenExplicitAccessModifier &&
----------------
HazardyKnusperkeks wrote:
This condition is repeated inside the if, please explain.
https://github.com/llvm/llvm-project/pull/227704
More information about the cfe-commits
mailing list