Skip to content

AllowShortBlocksOnASingleLine fails on ForEachMacros #45432

@GoBigorGoHome

Description

@GoBigorGoHome
Bugzilla Link 46087
Version 10.0
OS Windows NT
CC @mkurdej,@mydeveloperday,@GoBigorGoHome

Extended Description

.clang-format:

ForEachMacros: ['rng']
AllowShortBlocksOnASingleLine: Never

Before:

rng (i, 0, 10) { 
  std::cout << i; 
}

After:

rng (i, 0, 10) { std::cout << i; }

Expect:

rng (i, 0, 10) { 
  std::cout << i; 
}

Metadata

Metadata

Labels

bugIndicates an unexpected problem or unintended behaviorbugzillaIssues migrated from bugzillaclang-format

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions