Add ForEachMacros to .clang-format
So it doesn't add a linebreak after them.
This commit is contained in:
parent
006c73b47a
commit
861e4ec55a
4 changed files with 9 additions and 5 deletions
|
@ -40,4 +40,10 @@ SpacesInContainerLiterals: false
|
|||
SpacesInParentheses: false
|
||||
SpacesInSquareBrackets: false
|
||||
UseTab: Never
|
||||
ForEachMacros:
|
||||
- wl_list_for_each
|
||||
- wl_list_for_each_safe
|
||||
- wl_list_for_each_reverse
|
||||
- wl_list_for_each_reverse_safe
|
||||
- wl_array_for_each
|
||||
...
|
||||
|
|
|
@ -96,8 +96,7 @@ output_frame_notify(struct wl_listener *listener, void *data)
|
|||
wlr_renderer_clear(renderer, (float[]){0.0f, 1.0f, 0.0f, 1.0f});
|
||||
|
||||
struct kiwmi_view *view;
|
||||
wl_list_for_each_reverse(view, &desktop->views, link)
|
||||
{
|
||||
wl_list_for_each_reverse (view, &desktop->views, link) {
|
||||
if (!view->mapped) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -123,8 +123,7 @@ view_at(
|
|||
double *sy)
|
||||
{
|
||||
struct kiwmi_view *view;
|
||||
wl_list_for_each(view, &desktop->views, link)
|
||||
{
|
||||
wl_list_for_each (view, &desktop->views, link) {
|
||||
if (surface_at(view, surface, lx, ly, sx, sy)) {
|
||||
return view;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue