🧹 gucc: apply clang-format

This commit is contained in:
Vladislav Nepogodin 2024-08-17 03:30:16 +04:00
parent 493c5430ba
commit 9002dbbe85
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9
2 changed files with 3 additions and 4 deletions

View File

@ -116,7 +116,7 @@ auto get_isa_levels() noexcept -> std::vector<std::string> {
std::vector<std::string> supported_isa_levels;
{
struct utsname un { };
struct utsname un{};
uname(&un);
supported_isa_levels.emplace_back(un.machine);
}

View File

@ -26,7 +26,6 @@ constexpr auto modify_initcpio_line(std::string_view line, std::string_view modu
constexpr auto modify_initcpio_fields(std::string_view file_content, std::string_view modules, std::string_view files, std::string_view hooks) noexcept -> std::string {
return file_content | std::ranges::views::split('\n')
| std::ranges::views::transform([&](auto&& rng) {
/* clang-format off */
auto&& line = std::string_view(&*rng.begin(), static_cast<size_t>(std::ranges::distance(rng)));
return modify_initcpio_line(line, modules, files, hooks);
})