]> git.mdlowis.com Git - proto/labwc.git/commit
add .clang-format (with a disclaimer)
authorJohn Lindgren <john@jlindgren.net>
Thu, 18 Apr 2024 01:25:40 +0000 (21:25 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 18 Apr 2024 20:52:38 +0000 (21:52 +0100)
commit1e514c75501f0b9db78e27acadfc2d83a80848c7
treeab6b8f40ae1cc718f1c572b7152525f4279c3dab
parent069e22f2b6f2b019c0f46f7e2810a8417b44bd4f
add .clang-format (with a disclaimer)

.clang-format gets picked up nowadays by some IDEs (tested Qt Creator)
for auto-formatting aids. With the large caveat that it's not 100%
accurate to labwc's preferred coding style, I've found that this config
gets it right 90% of the time, which is enough to be helpful.

I added a prominent disclaimer comment to the top of the file to warn
people away from relying completely on clang-format. This isn't meant
to replace manual attention to formatting details (or to replace
./scripts/check) but I think it doesn't hurt.
.clang-format [new file with mode: 0644]