clang-format: bring back ForeachMacros (#3948)
* clang-format: bring back ForeachMacros
ForeachMacros was disabled in 4211274fcd
due to the breakage of include/queue.h. The currently used version,
clang-format-6.0 doesn't break it.
* Add curly braces
Co-authored-by: Orestis Floros <orestisflo@gmail.com>
This commit is contained in:
@ -155,7 +155,7 @@ static void sighandler_setup(void) {
|
||||
|
||||
static void sighandler_create_dialogs(void) {
|
||||
Output *output;
|
||||
TAILQ_FOREACH(output, &outputs, outputs) {
|
||||
TAILQ_FOREACH (output, &outputs, outputs) {
|
||||
if (!output->active) {
|
||||
continue;
|
||||
}
|
||||
@ -230,7 +230,7 @@ static void sighandler_destroy_dialogs(void) {
|
||||
|
||||
static void sighandler_handle_expose(void) {
|
||||
dialog_t *current;
|
||||
TAILQ_FOREACH(current, &dialogs, dialogs) {
|
||||
TAILQ_FOREACH (current, &dialogs, dialogs) {
|
||||
sighandler_draw_dialog(current);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user