gplugin/gplugin

Work-around clang-format-9 issue
develop
2020-02-28, Richard Laager
47b11278e9ea
Work-around clang-format-9 issue

I do not know what causes this, but clang-format-9 formats these bits
incorrectly. clang-format-11 formats them correctly, so eventually
this can go away.
--- a/gplugin/tests/versioned-dependencies/super-dependent.c Thu Feb 27 05:38:16 2020 +0000
+++ b/gplugin/tests/versioned-dependencies/super-dependent.c Fri Feb 28 10:34:51 2020 -0600
@@ -21,6 +21,8 @@
G_MODULE_EXPORT GPluginPluginInfo *
gplugin_query(G_GNUC_UNUSED GError **error)
{
+ /* clang-format-11 formats this correctly, so this can be removed then. */
+ /* clang-format off */
const gchar *const dependencies[] = {
"gplugin/test-no-version",
"gplugin/test-exact1==1.0",
@@ -33,6 +35,7 @@
"gplugin/foo|gplugin/baz>=2.0",
"gplugin/foo|gplugin/fez<1.9",
NULL};
+ /* clang-format on */
/* clang-format off */
return gplugin_plugin_info_new(
--- a/lua/gplugin-lua-core.c Thu Feb 27 05:38:16 2020 +0000
+++ b/lua/gplugin-lua-core.c Fri Feb 28 10:34:51 2020 -0600
@@ -26,9 +26,12 @@
G_MODULE_EXPORT GPluginPluginInfo *
gplugin_query(G_GNUC_UNUSED GError **error)
{
+ /* clang-format-11 formats this correctly, so this can be removed then. */
+ /* clang-format off */
const gchar *const authors[] = {
"Gary Kramlich <grim@reaperworld.com>",
NULL};
+ /* clang-format on */
/* clang-format off */
return gplugin_plugin_info_new(
--- a/python/gplugin-python3-core.c Thu Feb 27 05:38:16 2020 +0000
+++ b/python/gplugin-python3-core.c Fri Feb 28 10:34:51 2020 -0600
@@ -26,9 +26,12 @@
G_MODULE_EXPORT GPluginPluginInfo *
gplugin_query(G_GNUC_UNUSED GError **error)
{
+ /* clang-format-11 formats this correctly, so this can be removed then. */
+ /* clang-format off */
const gchar *const authors[] = {
"Gary Kramlich <grim@reaperworld.com>",
NULL};
+ /* clang-format on */
/* clang-format off */
return gplugin_plugin_info_new(