<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/clang/lib/Format/Format.cpp, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[clang-format] Add option to separate comment alignment between ... (#165033)</title>
<updated>2025-11-07T15:12:30+00:00</updated>
<author>
<name>Björn Schäpers</name>
<email>bjoern@hazardy.de</email>
</author>
<published>2025-11-07T15:12:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=bcb1b773f6412323c0dbe555c0ccd00b6cd1ae0e'/>
<id>bcb1b773f6412323c0dbe555c0ccd00b6cd1ae0e</id>
<content type='text'>
normal lines and PP directives.

Handling PP directives differently can be desired, like in #161848.
Changing the default is not an option, there are tests for exactly the
current behaviour.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
normal lines and PP directives.

Handling PP directives differently can be desired, like in #161848.
Changing the default is not an option, there are tests for exactly the
current behaviour.</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-format] Add BreakAfterOpenBracket* and BreakBeforeCloseBracket* (#108332)</title>
<updated>2025-10-30T19:24:44+00:00</updated>
<author>
<name>Gedare Bloom</name>
<email>gedare@rtems.org</email>
</author>
<published>2025-10-30T19:24:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=8067b5cff73ea96189b5bbca1110cfe4dce03552'/>
<id>8067b5cff73ea96189b5bbca1110cfe4dce03552</id>
<content type='text'>
Replace the `AlwaysBreak` and `BlockIndent` suboptions of
`AlignAfterOpenBracket` with new style options `BreakAfterOpenBracket*`
and `BreakBeforeCloseBracket*` for `*` in `BracedList` for braced list
initializers, `if` for if conditional statements, `Loop` for loop
control statements (for/while), `Switch` for switch statements, and
`Function` for function calls/declarations/definitions.

Deprecates `AlwaysBreak` and `BlockIndent`.
 
Fixes #67738 
Fixes #79176 
Fixes #80123 
Fixes #151844
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace the `AlwaysBreak` and `BlockIndent` suboptions of
`AlignAfterOpenBracket` with new style options `BreakAfterOpenBracket*`
and `BreakBeforeCloseBracket*` for `*` in `BracedList` for braced list
initializers, `if` for if conditional statements, `Loop` for loop
control statements (for/while), `Switch` for switch statements, and
`Function` for function calls/declarations/definitions.

Deprecates `AlwaysBreak` and `BlockIndent`.
 
Fixes #67738 
Fixes #79176 
Fixes #80123 
Fixes #151844
</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-format] Remove special handling of comments after brace/paren (#71672)</title>
<updated>2025-10-18T22:25:28+00:00</updated>
<author>
<name>Björn Schäpers</name>
<email>bjoern@hazardy.de</email>
</author>
<published>2025-10-18T22:25:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=cf28a476fb0fae2b19112ce0532b308e79d7bf39'/>
<id>cf28a476fb0fae2b19112ce0532b308e79d7bf39</id>
<content type='text'>
Fixes http://llvm.org/PR55487 (#55487)

The code did not match the documentation about Cpp11BracedListStyle.
Changed handling of comments after opening braces, which are supposedly
function call like to behave exactly like their parenthesis counter
part.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes http://llvm.org/PR55487 (#55487)

The code did not match the documentation about Cpp11BracedListStyle.
Changed handling of comments after opening braces, which are supposedly
function call like to behave exactly like their parenthesis counter
part.</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-format] Fix an assertion failure on comment-only config files (#163111)</title>
<updated>2025-10-17T04:40:59+00:00</updated>
<author>
<name>owenca</name>
<email>owenpiano@gmail.com</email>
</author>
<published>2025-10-17T04:40:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=059f2df74898ff7f394dc8e60f746323499ae32b'/>
<id>059f2df74898ff7f394dc8e60f746323499ae32b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-format] Keep the ObjC selector name and `@selector` together (#160739)</title>
<updated>2025-10-03T20:40:48+00:00</updated>
<author>
<name>sstwcw</name>
<email>su3e8a96kzlver@posteo.net</email>
</author>
<published>2025-10-03T20:40:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=2a059042882ed5108478c635322e4e94439386f5'/>
<id>2a059042882ed5108478c635322e4e94439386f5</id>
<content type='text'>
Fixes #36459.

after

```Objective-C
- (void)test {
  if ([object
          respondsToSelector:@selector(
                                 selectorNameThatIsReallyLong:param1:param2:)])
    return;
}
```

before

```Objective-C
- (void)test {
  if ([object respondsToSelector:@selector
              (selectorNameThatIsReallyLong:param1:param2:)])
    return;
}
```

Before this patch, the `ObjCMethodExpr` type was assigned to many kinds
of tokens. The rule for allowing breaking the line before the colon on
line TokenAnnotator.cpp:6289 was intended for method declarations and
calls. It matched the parenthesis following `@selector` by mistake. To
fix the problem, this patch adds a new type for `@selector`. Most of the
special things in the code related to the old type is intended for other
constructs. So most of the code related to the old type is not changed
in this patch.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #36459.

after

```Objective-C
- (void)test {
  if ([object
          respondsToSelector:@selector(
                                 selectorNameThatIsReallyLong:param1:param2:)])
    return;
}
```

before

```Objective-C
- (void)test {
  if ([object respondsToSelector:@selector
              (selectorNameThatIsReallyLong:param1:param2:)])
    return;
}
```

Before this patch, the `ObjCMethodExpr` type was assigned to many kinds
of tokens. The rule for allowing breaking the line before the colon on
line TokenAnnotator.cpp:6289 was intended for method declarations and
calls. It matched the parenthesis following `@selector` by mistake. To
fix the problem, this patch adds a new type for `@selector`. Most of the
special things in the code related to the old type is intended for other
constructs. So most of the code related to the old type is not changed
in this patch.
</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-format][NFC] Introduce isNoneOf (#161021)</title>
<updated>2025-10-02T18:52:45+00:00</updated>
<author>
<name>Björn Schäpers</name>
<email>bjoern@hazardy.de</email>
</author>
<published>2025-10-02T18:52:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=847e1e18902d1bedb9d7df8cbec84dbda8042e47'/>
<id>847e1e18902d1bedb9d7df8cbec84dbda8042e47</id>
<content type='text'>
And apply throughout the code base.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
And apply throughout the code base.</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-format] Correctly handle backward compatibility of C headers (#159908)</title>
<updated>2025-09-25T07:44:33+00:00</updated>
<author>
<name>owenca</name>
<email>owenpiano@gmail.com</email>
</author>
<published>2025-09-25T07:44:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=d7921de8027eec19a9d272bf445944973e6758b1'/>
<id>d7921de8027eec19a9d272bf445944973e6758b1</id>
<content type='text'>
This in effect reverts 05fb8408de23c3ccb6125b6886742177755bd757 and
7e1a88b9d1431e263258e3ff0f729c1fdce342d3, the latter of which
erroneously changed the behavior of formatting `ObjC` header files when
both the default and `ObjC` styles were absent. Now the previous
behavior of treating that as an error is restored.

Fixes #158704</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This in effect reverts 05fb8408de23c3ccb6125b6886742177755bd757 and
7e1a88b9d1431e263258e3ff0f729c1fdce342d3, the latter of which
erroneously changed the behavior of formatting `ObjC` header files when
both the default and `ObjC` styles were absent. Now the previous
behavior of treating that as an error is restored.

Fixes #158704</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-format] Add AllowBreakBeforeQtProperty option (#159909)</title>
<updated>2025-09-22T07:07:14+00:00</updated>
<author>
<name>owenca</name>
<email>owenpiano@gmail.com</email>
</author>
<published>2025-09-22T07:07:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=583256d165cb8dd9efe144866b245a2e5b7d5125'/>
<id>583256d165cb8dd9efe144866b245a2e5b7d5125</id>
<content type='text'>
The test cases are adapted from #131605.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The test cases are adapted from #131605.</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-format][NFC] Add is_sorted() assertion for binary_search()</title>
<updated>2025-09-20T05:30:46+00:00</updated>
<author>
<name>Owen Pan</name>
<email>owenpiano@gmail.com</email>
</author>
<published>2025-09-20T05:26:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=43cfad6e26bcaba3423972d3e29fdfd4c440a36b'/>
<id>43cfad6e26bcaba3423972d3e29fdfd4c440a36b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-format] Handle C digit separators (#158418)</title>
<updated>2025-09-14T21:20:59+00:00</updated>
<author>
<name>owenca</name>
<email>owenpiano@gmail.com</email>
</author>
<published>2025-09-14T21:20:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=30f4781eef567b99214e02137a57c7ac91279a48'/>
<id>30f4781eef567b99214e02137a57c7ac91279a48</id>
<content type='text'>
Fixes #158413</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #158413</pre>
</div>
</content>
</entry>
</feed>
