diff options
author | Federico Mena Quintero <federico@gnome.org> | 2022-12-06 20:44:48 -0600 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2022-12-06 20:50:13 -0600 |
commit | b10fcf21b1ef49dd3d6297ac657434ece3b23578 (patch) | |
tree | d560f8449f3ae75fea343887dcb6d5f4df7b434c /atspi/atspi-object.c | |
parent | bf4d71a38b970699f63ce7b701e9bf4c9d31f717 (diff) | |
download | at-spi2-core-b10fcf21b1ef49dd3d6297ac657434ece3b23578.tar.gz |
Reformat all the *.[ch] files with clang-format
I ran this on each directory with C files:
clang-format -i *.[ch]
"-i" is the in-place option.
I also adjusted the order of #includes for some files which failed to
build after that:
Clang-format reorders blocks of #include directives alphabetically,
but they can be grouped and separated by blank lines. If there is a
blank line between blocks, like
#include "zork.h"
#include "bar.h"
#include "foo.h"
then it will not put zork.h after the other two. The last two header
files will be sorted alphabetically.
We can adjust the formatting of chunks of code by hand with comments
like these:
/* clang-format off */
this code {
is, formatted, by, hand;
}
/* clang-format on */
See https://clang.llvm.org/docs/ClangFormat.html for the general
manual and https://clang.llvm.org/docs/ClangFormatStyleOptions.html
for the style options and the comments described above.
Diffstat (limited to 'atspi/atspi-object.c')
-rw-r--r-- | atspi/atspi-object.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/atspi/atspi-object.c b/atspi/atspi-object.c index a838ba0b..2e9a6d0e 100644 --- a/atspi/atspi-object.c +++ b/atspi/atspi-object.c @@ -36,10 +36,10 @@ atspi_object_dispose (GObject *object) AtspiObject *aobj = ATSPI_OBJECT (object); if (aobj->app) - { - g_object_unref (aobj->app); - aobj->app = NULL; - } + { + g_object_unref (aobj->app); + aobj->app = NULL; + } G_OBJECT_CLASS (atspi_object_parent_class)->dispose (object); } |