vulkan: Generate files with newline at end
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

These generator scripts use the `write` function that, unlike `print`,
doesn't print a trailing newline. So let's add one to the template.

Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35697>
This commit is contained in:
Matt Turner 2025-06-23 18:38:47 -04:00 committed by Marge Bot
parent 6a47531440
commit 7d329d615a
2 changed files with 6 additions and 3 deletions

View file

@ -190,7 +190,8 @@ H_TEMPLATE = Template(textwrap.dedent(u"""\
} /* extern "C" */
#endif
#endif"""))
#endif
"""))
H_DEFINE_TEMPLATE = Template(textwrap.dedent(u"""\
@ -253,7 +254,8 @@ H_DEFINE_TEMPLATE = Template(textwrap.dedent(u"""\
} /* extern "C" */
#endif
#endif"""))
#endif
"""))
class NamedFactory(object):

View file

@ -42,7 +42,8 @@ H_TEMPLATE = Template(textwrap.dedent(u"""\
} /* extern "C" */
#endif
#endif"""))
#endif
"""))
class VkStruct(object):