<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cmake.git/Source/cmFileLockUnix.cxx, branch master</title>
<subtitle>cmake</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/cmake.git/atom/Source/cmFileLockUnix.cxx?h=master</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/cmake.git/atom/Source/cmFileLockUnix.cxx?h=master'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/cmake.git/'/>
<updated>2021-01-27T13:45:45Z</updated>
<entry>
<title>clang-tidy: fix `readability-make-member-function-const` warnings</title>
<updated>2021-01-27T13:45:45Z</updated>
<author>
<name>Ben Boeckel</name>
<email>ben.boeckel@kitware.com</email>
</author>
<published>2021-01-22T15:37:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/cmake.git/commit/?id=808b17b1206dd70c7fbd676e8c24181cde537954'/>
<id>urn:sha1:808b17b1206dd70c7fbd676e8c24181cde537954</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revise include order using clang-format-6.0</title>
<updated>2019-10-01T16:26:36Z</updated>
<author>
<name>Kitware Robot</name>
<email>kwrobot@kitware.com</email>
</author>
<published>2019-09-30T14:46:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/cmake.git/commit/?id=ed98209ddc8d5e9f5b20cd010c69a25d553b2654'/>
<id>urn:sha1:ed98209ddc8d5e9f5b20cd010c69a25d553b2654</id>
<content type='text'>
Run the `clang-format.bash` script to update our C and C++ code to a new
include order `.clang-format`.  Use `clang-format` version 6.0.
</content>
</entry>
<entry>
<title>clang-tidy: modernize-deprecated-headers</title>
<updated>2019-09-16T14:11:13Z</updated>
<author>
<name>Regina Pfeifer</name>
<email>regina@mailbox.org</email>
</author>
<published>2019-09-06T20:58:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/cmake.git/commit/?id=f30523d090b343c7eff3083b8f12e3dcd4755cba'/>
<id>urn:sha1:f30523d090b343c7eff3083b8f12e3dcd4755cba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>clang-tidy: Use `= default`</title>
<updated>2019-01-25T11:44:32Z</updated>
<author>
<name>Regina Pfeifer</name>
<email>regina@mailbox.org</email>
</author>
<published>2019-01-22T22:44:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/cmake.git/commit/?id=55671b41d2d182ce8d3201012ec55badd7116615'/>
<id>urn:sha1:55671b41d2d182ce8d3201012ec55badd7116615</id>
<content type='text'>
Suppress some cases in `Source/cmGeneratorExpressionNode.cxx` and
`Source/cmUVHandlePtr.h` where a few older compilers require a
user-defined default constructor (with `{}`).
</content>
</entry>
<entry>
<title>clang-tidy: Use default member initialization</title>
<updated>2018-12-15T09:52:37Z</updated>
<author>
<name>Regina Pfeifer</name>
<email>regina@mailbox.org</email>
</author>
<published>2018-11-21T22:17:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/cmake.git/commit/?id=b2aa3aedeab09ad7b2c95353d2d3c3d867bcec53'/>
<id>urn:sha1:b2aa3aedeab09ad7b2c95353d2d3c3d867bcec53</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Simplify CMake per-source license notices</title>
<updated>2016-09-27T19:14:44Z</updated>
<author>
<name>Brad King</name>
<email>brad.king@kitware.com</email>
</author>
<published>2016-09-27T19:01:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/cmake.git/commit/?id=86578eccf2e82286248796bad1032cd0e3a5e1e2'/>
<id>urn:sha1:86578eccf2e82286248796bad1032cd0e3a5e1e2</id>
<content type='text'>
Per-source copyright/license notice headers that spell out copyright holder
names and years are hard to maintain and often out-of-date or plain wrong.
Precise contributor information is already maintained automatically by the
version control tool.  Ultimately it is the receiver of a file who is
responsible for determining its licensing status, and per-source notices are
merely a convenience.  Therefore it is simpler and more accurate for
each source to have a generic notice of the license name and references to
more detailed information on copyright holders and full license terms.

Our `Copyright.txt` file now contains a list of Contributors whose names
appeared source-level copyright notices.  It also references version control
history for more precise information.  Therefore we no longer need to spell
out the list of Contributors in each source file notice.

Replace CMake per-source copyright/license notice headers with a short
description of the license and links to `Copyright.txt` and online information
available from "https://cmake.org/licensing".  The online URL also handles
cases of modules being copied out of our source into other projects, so we
can drop our notices about replacing links with full license text.

Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority
of the replacements mechanically.  Manually fix up shebang lines and trailing
newlines in a few files.  Manually update the notices in a few files that the
script does not handle.
</content>
</entry>
<entry>
<title>Avoid else after return</title>
<updated>2016-09-16T20:45:24Z</updated>
<author>
<name>Daniel Pfeifer</name>
<email>daniel@pfeifer-mail.de</email>
</author>
<published>2016-09-16T20:45:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/cmake.git/commit/?id=516f8edb2e061749c56b6f9a58332fbf59e45a1a'/>
<id>urn:sha1:516f8edb2e061749c56b6f9a58332fbf59e45a1a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revise C++ coding style using clang-format</title>
<updated>2016-05-16T20:05:19Z</updated>
<author>
<name>Kitware Robot</name>
<email>kwrobot@kitware.com</email>
</author>
<published>2016-05-16T14:34:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/cmake.git/commit/?id=d9fd2f5402eeaa345691313658e02b51038f570b'/>
<id>urn:sha1:d9fd2f5402eeaa345691313658e02b51038f570b</id>
<content type='text'>
Run the `Utilities/Scripts/clang-format.bash` script to update
all our C++ code to a new style defined by `.clang-format`.
Use `clang-format` version 3.8.

* If you reached this commit for a line in `git blame`, re-run the blame
  operation starting at the parent of this commit to see older history
  for the content.

* See the parent commit for instructions to rebase a change across this
  style transition commit.
</content>
</entry>
<entry>
<title>Format include directive blocks and ordering with clang-format</title>
<updated>2016-04-29T17:58:54Z</updated>
<author>
<name>Brad King</name>
<email>brad.king@kitware.com</email>
</author>
<published>2016-04-29T14:53:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/cmake.git/commit/?id=e1c7747253ac71a5215dd32a910b62a1fd8c561a'/>
<id>urn:sha1:e1c7747253ac71a5215dd32a910b62a1fd8c561a</id>
<content type='text'>
Sort include directives within each block (separated by a blank line) in
lexicographic order (except to prioritize `sys/types.h` first).  First
run `clang-format` with the config file:

    ---
    SortIncludes: false
    ...

Commit the result temporarily.  Then run `clang-format` again with:

    ---
    SortIncludes: true
    IncludeCategories:
      - Regex:    'sys/types.h'
        Priority: -1
    ...

Commit the result temporarily.  Start a new branch and cherry-pick the
second commit.  Manually resolve conflicts to preserve indentation of
re-ordered includes.  This cleans up the include ordering without
changing any other style.

Use the following command to run `clang-format`:

    $ git ls-files -z -- \
        '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' |
      egrep -z -v '(Lexer|Parser|ParserHelper)\.' |
      egrep -z -v '^Source/cm_sha2' |
      egrep -z -v '^Source/(kwsys|CursesDialog/form)/' |
      egrep -z -v '^Utilities/(KW|cm).*/' |
      egrep -z -v '^Tests/Module/GenerateExportHeader' |
      egrep -z -v '^Tests/RunCMake/CommandLine/cmake_depends/test_UTF-16LE.h' |
      xargs -0 clang-format -i

This selects source files that do not come from a third-party.

Inspired-by: Daniel Pfeifer &lt;daniel@pfeifer-mail.de&gt;
</content>
</entry>
<entry>
<title>file(LOCK): Close file descriptor/handle when releasing a lock</title>
<updated>2015-03-25T13:00:51Z</updated>
<author>
<name>Betsy McPhail</name>
<email>betsy.mcphail@kitware.com</email>
</author>
<published>2015-03-23T20:32:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/cmake.git/commit/?id=1f289095f908fddd64152c5686bec25eecbc66d6'/>
<id>urn:sha1:1f289095f908fddd64152c5686bec25eecbc66d6</id>
<content type='text'>
The file lock functionality added in commit v3.2.0-rc1~297^2~1 (file:
Add LOCK subcommand to do file and directory locking, 2014-11-26) forgot
to close the lock file descriptors.  Eventually it was possible to run
out of file descriptors and locks could not longer be acquired.  Fix
this by closing the file descriptor or handle when we are done with it.
Also set the member back to the initial value from the constructor
to leave everything in a consistent state (useful for debugging).

Co-Author: Ruslan Baratov &lt;ruslan_baratov@yahoo.com&gt;
</content>
</entry>
</feed>
