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:
@ -21,7 +21,7 @@ void run_assignments(i3Window *window) {
|
||||
|
||||
/* Check if any assignments match */
|
||||
Assignment *current;
|
||||
TAILQ_FOREACH(current, &assignments, assignments) {
|
||||
TAILQ_FOREACH (current, &assignments, assignments) {
|
||||
if (current->type != A_COMMAND || !match_matches_window(&(current->match), window))
|
||||
continue;
|
||||
|
||||
@ -69,7 +69,7 @@ void run_assignments(i3Window *window) {
|
||||
Assignment *assignment_for(i3Window *window, int type) {
|
||||
Assignment *assignment;
|
||||
|
||||
TAILQ_FOREACH(assignment, &assignments, assignments) {
|
||||
TAILQ_FOREACH (assignment, &assignments, assignments) {
|
||||
if ((type != A_ANY && (assignment->type & type) == 0) ||
|
||||
!match_matches_window(&(assignment->match), window))
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user