<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cmake.git/.clang-format, branch master</title>
<subtitle>gitlab.kitware.com: cmake/cmake.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/'/>
<entry>
<title>clang-format.bash: update to clang-format-15</title>
<updated>2023-01-18T21:20:02+00:00</updated>
<author>
<name>Brad King</name>
<email>brad.king@kitware.com</email>
</author>
<published>2023-01-18T17:45:07+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=6739d579486b52a76baee238162faa10bd21b38e'/>
<id>6739d579486b52a76baee238162faa10bd21b38e</id>
<content type='text'>
The `.clang-format` configuration needs no changes to make the
version 15 format close to what version 6.0 produced before.

Issue: #24315
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `.clang-format` configuration needs no changes to make the
version 15 format close to what version 6.0 produced before.

Issue: #24315
</pre>
</div>
</content>
</entry>
<entry>
<title>STL Support: introduce dedicated configuration file</title>
<updated>2020-07-09T13:24:43+00:00</updated>
<author>
<name>Marc Chevrier</name>
<email>marc.chevrier@gmail.com</email>
</author>
<published>2020-06-25T12:23:25+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=e5798126fcfd08c7ca0f0f8d1fb627b04f655198'/>
<id>e5798126fcfd08c7ca0f0f8d1fb627b04f655198</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactoring: Third-parties public headers are under cm3p prefix</title>
<updated>2020-05-07T10:06:08+00:00</updated>
<author>
<name>Marc Chevrier</name>
<email>marc.chevrier@gmail.com</email>
</author>
<published>2020-05-04T21:22:02+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=2faa3f6c55d2288316419f3efb8a483904a295f2'/>
<id>2faa3f6c55d2288316419f3efb8a483904a295f2</id>
<content type='text'>
Fixes: #20666
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes: #20666
</pre>
</div>
</content>
</entry>
<entry>
<title>clang-format: fix erroneous handling of header &lt;queue&gt;</title>
<updated>2020-01-06T16:33:45+00:00</updated>
<author>
<name>Marc Chevrier</name>
<email>marc.chevrier@gmail.com</email>
</author>
<published>2020-01-03T17:44:48+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=a8aa89352a448fe9290532ad7b1d24d7e1b5e21e'/>
<id>a8aa89352a448fe9290532ad7b1d24d7e1b5e21e</id>
<content type='text'>
The rule Regex: '^&lt;' was not applied to this header because a more specific one applies: Regex: '^(&lt;|")Qt?[A-Z]' used for Qt headers (rules are not case-sensitive). So adding a specific rule for this header before the Qt rule is required.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The rule Regex: '^&lt;' was not applied to this header because a more specific one applies: Regex: '^(&lt;|")Qt?[A-Z]' used for Qt headers (rules are not case-sensitive). So adding a specific rule for this header before the Qt rule is required.
</pre>
</div>
</content>
</entry>
<entry>
<title>Memory management: cast functions for managed pointers</title>
<updated>2019-11-27T15:03:04+00:00</updated>
<author>
<name>Marc Chevrier</name>
<email>marc.chevrier@gmail.com</email>
</author>
<published>2019-11-18T18:15:49+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=fc3b4caa2e6a1970c75830445ef4aa7d03c5a533'/>
<id>fc3b4caa2e6a1970c75830445ef4aa7d03c5a533</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: Normalize headers presentation</title>
<updated>2019-10-01T16:25:48+00:00</updated>
<author>
<name>Marc Chevrier</name>
<email>marc.chevrier@gmail.com</email>
</author>
<published>2019-09-21T14:38:38+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=185fe49f29f6632a3c26c376fcb4934e91092ff7'/>
<id>185fe49f29f6632a3c26c376fcb4934e91092ff7</id>
<content type='text'>
By using clang-format directives 'IncludeBlocks' and 'IncludeCategories'
headers are regrouped by categories:
1. "cmConfigure.h" which must be first
2. header matching current implementation file
3. standard language headers
4. CMake replacement ones
5. external  headers (i.e. #include directive with '&lt;' and '&gt;')
6. Qt headers
7. cmsys/* headers
8. cm_* headers
9. CMake headers (i.e. starting with 'cm[A-Z]')
10. all other headers

Fixes: #19674
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
By using clang-format directives 'IncludeBlocks' and 'IncludeCategories'
headers are regrouped by categories:
1. "cmConfigure.h" which must be first
2. header matching current implementation file
3. standard language headers
4. CMake replacement ones
5. external  headers (i.e. #include directive with '&lt;' and '&gt;')
6. Qt headers
7. cmsys/* headers
8. cm_* headers
9. CMake headers (i.e. starting with 'cm[A-Z]')
10. all other headers

Fixes: #19674
</pre>
</div>
</content>
</entry>
<entry>
<title>clang-format.bash: update to clang-format-6.0</title>
<updated>2018-06-01T13:52:02+00:00</updated>
<author>
<name>Brad King</name>
<email>brad.king@kitware.com</email>
</author>
<published>2018-05-31T17:40:34+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=523c443d135f6474cf5a9d0372b3cc364fc7ebe5'/>
<id>523c443d135f6474cf5a9d0372b3cc364fc7ebe5</id>
<content type='text'>
Update `.clang-format` with configuration to make the 6.0 format as
close as possible to what 3.8 produced before.  Then revise the style:

* Indent preprocessor directives (a feature new since 3.8)
* Add a newline and indentation before inheritance `:` and `,`

Rename the Git attribute identifying the format to include the
clang-format version number: `format.clang-format-6.0`.  This will aid
external infrastructure in knowing what version of the tool to run.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update `.clang-format` with configuration to make the 6.0 format as
close as possible to what 3.8 produced before.  Then revise the style:

* Indent preprocessor directives (a feature new since 3.8)
* Add a newline and indentation before inheritance `:` and `,`

Rename the Git attribute identifying the format to include the
clang-format version number: `format.clang-format-6.0`.  This will aid
external infrastructure in knowing what version of the tool to run.
</pre>
</div>
</content>
</entry>
<entry>
<title>clang-format: Explicitly require version 3.8 of the tool</title>
<updated>2018-05-18T13:19:10+00:00</updated>
<author>
<name>Brad King</name>
<email>brad.king@kitware.com</email>
</author>
<published>2018-05-17T13:57:49+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=8cfc45f6bd91b258eccf058913df1490ae2face6'/>
<id>8cfc45f6bd91b258eccf058913df1490ae2face6</id>
<content type='text'>
Versions of clang-format newer than 3.8 produce different output.
Our source code guide says that version 3.8 exactly must be used.
Update the comment in our `.clang-format` config file accordingly.
Add a check to our formatting script to verify the version.
Also update its tool search to look for the explicitly-named
3.8 variant first.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Versions of clang-format newer than 3.8 produce different output.
Our source code guide says that version 3.8 exactly must be used.
Update the comment in our `.clang-format` config file accordingly.
Add a check to our formatting script to verify the version.
Also update its tool search to look for the explicitly-named
3.8 variant first.
</pre>
</div>
</content>
</entry>
<entry>
<title>clang-format: format all code as Cpp11</title>
<updated>2017-08-30T15:07:05+00:00</updated>
<author>
<name>Daniel Pfeifer</name>
<email>daniel@pfeifer-mail.de</email>
</author>
<published>2017-08-25T21:25:09+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=2b4c32c95f9cd3282ee834a2d7eeba9ab56eff0b'/>
<id>2b4c32c95f9cd3282ee834a2d7eeba9ab56eff0b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Configure clang-format for CMake source tree</title>
<updated>2016-05-16T20:04:46+00:00</updated>
<author>
<name>Brad King</name>
<email>brad.king@kitware.com</email>
</author>
<published>2016-05-11T14:30:56+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=1e90d78f99cab5dea29af87e2f2d26880a71eae4'/>
<id>1e90d78f99cab5dea29af87e2f2d26880a71eae4</id>
<content type='text'>
After discussion among developers we settled on the Mozilla style
with a few tweaks:

* Do not align operator arguments.

* Do not always break after a function return type.

* Limit to 79 columns instead of 80 to fit edge cases
  better in 80-column terminals as CMake has always done.

* Format for C++98 instead of C++11 because CMake is written
  in the former language.

Co-Author: Daniel Pfeifer &lt;daniel@pfeifer-mail.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After discussion among developers we settled on the Mozilla style
with a few tweaks:

* Do not align operator arguments.

* Do not always break after a function return type.

* Limit to 79 columns instead of 80 to fit edge cases
  better in 80-column terminals as CMake has always done.

* Format for C++98 instead of C++11 because CMake is written
  in the former language.

Co-Author: Daniel Pfeifer &lt;daniel@pfeifer-mail.de&gt;
</pre>
</div>
</content>
</entry>
</feed>
