<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Shipwright/run-clang-format.sh, branch develop</title>
<subtitle>Ship of Harkinian: Ocarina of Time PC port</subtitle>
<link rel='alternate' type='text/html' href='https://git.dog6.net/Shipwright/'/>
<entry>
<title>docs: document clang-format 14 setup and add an opt-in pre-commit hook (#6741)</title>
<updated>2026-06-19T03:22:28+00:00</updated>
<author>
<name>David Racine</name>
<email>bass_dr@hotmail.com</email>
</author>
<published>2026-06-19T03:22:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/Shipwright/commit/?id=d912fd2c016bea51831da922f5f4fd31c14ccab3'/>
<id>d912fd2c016bea51831da922f5f4fd31c14ccab3</id>
<content type='text'>
Recent distros and Homebrew ship only newer clang-format, so contributors
can't easily get the version CI uses (14, matching the OoT/MM decomp).

- docs/FORMATTING.md: how to get a 14.x binary (apt, AUR, muttleyxd static
  binaries, uvx/pipx wheel, brew) and how to run the formatter.
- run-clang-format.sh: default to clang-format-14 but honor $CLANG_FORMAT so
  any matching binary works. Any 14.x produces byte-identical output here.
- .pre-commit-config.yaml: opt-in hook to format staged C/C++ on commit.
- README: link the new doc.

The llvm@14 formula is available on Linux too, so filing it under a
macOS-only heading was too narrow.

* Support spaced paths in CLANG_FORMAT; document run-clang-format.ps1

eval the clang-format invocation so CLANG_FORMAT can carry arguments
(uvx clang-format@14) or a quoted path with spaces without one breaking
the other. The NUL-separated file list reaches xargs over the pipe, so
filenames never pass through eval.

Document the native Windows run-clang-format.ps1 path alongside the Git
Bash/WSL route.

Co-Authored-By: Claude Opus 4.8 &lt;noreply@anthropic.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Recent distros and Homebrew ship only newer clang-format, so contributors
can't easily get the version CI uses (14, matching the OoT/MM decomp).

- docs/FORMATTING.md: how to get a 14.x binary (apt, AUR, muttleyxd static
  binaries, uvx/pipx wheel, brew) and how to run the formatter.
- run-clang-format.sh: default to clang-format-14 but honor $CLANG_FORMAT so
  any matching binary works. Any 14.x produces byte-identical output here.
- .pre-commit-config.yaml: opt-in hook to format staged C/C++ on commit.
- README: link the new doc.

The llvm@14 formula is available on Linux too, so filing it under a
macOS-only heading was too narrow.

* Support spaced paths in CLANG_FORMAT; document run-clang-format.ps1

eval the clang-format invocation so CLANG_FORMAT can carry arguments
(uvx clang-format@14) or a quoted path with spaces without one breaking
the other. The NUL-separated file list reaches xargs over the pipe, so
filenames never pass through eval.

Document the native Windows run-clang-format.ps1 path alongside the Git
Bash/WSL route.

Co-Authored-By: Claude Opus 4.8 &lt;noreply@anthropic.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>clang-format .hpp files (#5307)</title>
<updated>2025-04-04T03:33:35+00:00</updated>
<author>
<name>Archez</name>
<email>Archez@users.noreply.github.com</email>
</author>
<published>2025-04-04T03:33:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/Shipwright/commit/?id=f37c3aa2286dca72584cf3f2b3d89d0a9f5433e8'/>
<id>f37c3aa2286dca72584cf3f2b3d89d0a9f5433e8</id>
<content type='text'>
* Add hpp files to clang-format script

* clang-format hpp files</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add hpp files to clang-format script

* clang-format hpp files</pre>
</div>
</content>
</entry>
<entry>
<title>Better verbose output for clang-format (#5306)</title>
<updated>2025-04-03T19:23:47+00:00</updated>
<author>
<name>Archez</name>
<email>Archez@users.noreply.github.com</email>
</author>
<published>2025-04-03T19:23:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/Shipwright/commit/?id=2deea6e1055a3074a1edcdc6a1d952d544fcf8b1'/>
<id>2deea6e1055a3074a1edcdc6a1d952d544fcf8b1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>simplify clang-format script (#5274)</title>
<updated>2025-04-03T04:36:10+00:00</updated>
<author>
<name>Philip Dubé</name>
<email>serprex@users.noreply.github.com</email>
</author>
<published>2025-04-03T04:36:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/Shipwright/commit/?id=ef8fa17e7c748362cafea73132a1e84fe209733b'/>
<id>ef8fa17e7c748362cafea73132a1e84fe209733b</id>
<content type='text'>
checked that -print0 &amp; -0 also exist in apple's manpages</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
checked that -print0 &amp; -0 also exist in apple's manpages</pre>
</div>
</content>
</entry>
<entry>
<title>Add clang-format scripts and github runner action (#5270)</title>
<updated>2025-04-01T21:09:44+00:00</updated>
<author>
<name>Archez</name>
<email>Archez@users.noreply.github.com</email>
</author>
<published>2025-04-01T21:09:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/Shipwright/commit/?id=e8389e0b2e116bac34cbaea1e1eda0280a77da1a'/>
<id>e8389e0b2e116bac34cbaea1e1eda0280a77da1a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
