Style check does not align function parameters properly
I noticed the CI for one of my sidebranches failed with a style-check error:
906-g_compute_hmac_for_bytes (GChecksumType digest_type,
907- GBytes *key,
908- GBytes *data)
909+g_compute_hmac_for_bytes (GChecksumType digest_type,
910+ GBytes *key,
911+ GBytes *data)
912 {
913 gconstpointer byte_data;
914 gsize length;
915@@ -108,7 +108,6 @@
916 key_data = g_bytes_get_data (key, &key_len);
917 return g_compute_hmac_for_data (digest_type, key_data, key_len, byte_data, length);
918 }
919-
I asked pwithnall about it and he says the code style has not changed. The style check is just wrong. It's not a great reason for the CI to fail. :)
Here's a script you can use to line up the parameters properly.
Here's our usage example. You can just run the script before or after clang-format. I guess if you run it after clang-format, then you don't have to figure out how to teach clang-format to stop mucking with the parameter alignment, but probably it has flags to stop it from doing that altogether.