<feed xmlns='http://www.w3.org/2005/Atom'>
<title>catch3/.clang-format, branch constexpr_approx</title>
<subtitle>Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.</subtitle>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/'/>
<entry>
<title>Slightly better clang-format</title>
<updated>2023-01-05T22:02:51+00:00</updated>
<author>
<name>Martin Hořeňovský</name>
</author>
<published>2023-01-05T22:02:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=04382af4c640d801d332191528d11bd7ae5819f3'/>
<id>04382af4c640d801d332191528d11bd7ae5819f3</id>
<content type='text'>
Notably clang-format will no longer try to place template header
onto the same line as the function declaration.

Sadly it will still do it for attributes, because it took until
clang-format 16 for it to get the relevant option.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Notably clang-format will no longer try to place template header
onto the same line as the function declaration.

Sadly it will still do it for attributes, because it took until
clang-format 16 for it to get the relevant option.
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve the .clang-format file a bit</title>
<updated>2022-11-07T22:14:29+00:00</updated>
<author>
<name>Martin Hořeňovský</name>
</author>
<published>2022-11-07T20:47:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=fdea5a52c22007ae7bed356409a6c693a538b333'/>
<id>fdea5a52c22007ae7bed356409a6c693a538b333</id>
<content type='text'>
* add include sorting and grouping
* allow some short blocks to be on a single line
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* add include sorting and grouping
* allow some short blocks to be on a single line
</pre>
</div>
</content>
</entry>
<entry>
<title>Clang-format configuration added.</title>
<updated>2020-07-22T19:43:30+00:00</updated>
<author>
<name>offa</name>
</author>
<published>2020-04-29T11:18:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=273111d1a65a3331f47b549a931d396be26cff37'/>
<id>273111d1a65a3331f47b549a931d396be26cff37</id>
<content type='text'>
Some notes on the configuration options chosen:

* We want `AllowShortEnumsOnASingleLine` set to `false`, but that
option is clang-format-11 and up, which is not out yet.
* `IndentPPDirectives` is currently inconsistent, but `AfterHash`
is the preferred style in new code.
* `NamespaceIndentation` is a mess, but `All` is closer to the effect
we want than `Inner`.
* `SpacesInParentheses` set to `true` is not ideal due to it also
introducing extra spaces in preprocessor expressions, but using it
is much closer to the current style than not.

All in all, using this setting globally would reformat pretty much
every line of code in the codebase, but it is as close as possible
to the bespoke style currently used. Still, it should only be used
on the diffs.

Closes #1182
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some notes on the configuration options chosen:

* We want `AllowShortEnumsOnASingleLine` set to `false`, but that
option is clang-format-11 and up, which is not out yet.
* `IndentPPDirectives` is currently inconsistent, but `AfterHash`
is the preferred style in new code.
* `NamespaceIndentation` is a mess, but `All` is closer to the effect
we want than `Inner`.
* `SpacesInParentheses` set to `true` is not ideal due to it also
introducing extra spaces in preprocessor expressions, but using it
is much closer to the current style than not.

All in all, using this setting globally would reformat pretty much
every line of code in the codebase, but it is as close as possible
to the bespoke style currently used. Still, it should only be used
on the diffs.

Closes #1182
</pre>
</div>
</content>
</entry>
</feed>
