use [[gnu::...]] attributes

This commit is contained in:
Max Kellermann
2023-03-06 15:57:36 +01:00
parent 3b9aab0684
commit 42f6a0441c
101 changed files with 167 additions and 234 deletions

View File

@@ -34,14 +34,14 @@
#include <cassert>
#include <array>
gcc_pure
[[gnu::pure]]
static bool
SkipNameFS(PathTraitsFS::const_pointer name_fs) noexcept
{
return PathTraitsFS::IsSpecialFilename(name_fs);
}
gcc_pure
[[gnu::pure]]
static bool
skip_path(Path name_fs) noexcept
{
@@ -87,7 +87,7 @@ handle_listfiles_local(Response &r, Path path_fs)
#pragma GCC diagnostic pop
#endif
gcc_pure
[[gnu::pure]]
static bool
IsValidName(const std::string_view s) noexcept
{
@@ -99,7 +99,7 @@ IsValidName(const std::string_view s) noexcept
});
}
gcc_pure
[[gnu::pure]]
static bool
IsValidValue(const std::string_view s) noexcept
{