tag/FixString: use [[gnu::pure]]
This commit is contained in:
parent
db2a9cb6d5
commit
abed633fcb
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
gcc_pure
|
[[gnu::pure]]
|
||||||
static const char *
|
static const char *
|
||||||
FindInvalidUTF8(const char *p, const char *const end) noexcept
|
FindInvalidUTF8(const char *p, const char *const end) noexcept
|
||||||
{
|
{
|
||||||
@ -116,7 +116,7 @@ clear_non_printable(StringView src)
|
|||||||
return { dest, src.size };
|
return { dest, src.size };
|
||||||
}
|
}
|
||||||
|
|
||||||
gcc_pure
|
[[gnu::pure]]
|
||||||
static bool
|
static bool
|
||||||
IsSafe(StringView s) noexcept
|
IsSafe(StringView s) noexcept
|
||||||
{
|
{
|
||||||
|
@ -20,12 +20,9 @@
|
|||||||
#ifndef MPD_TAG_STRING_HXX
|
#ifndef MPD_TAG_STRING_HXX
|
||||||
#define MPD_TAG_STRING_HXX
|
#define MPD_TAG_STRING_HXX
|
||||||
|
|
||||||
#include "util/Compiler.h"
|
|
||||||
|
|
||||||
struct StringView;
|
struct StringView;
|
||||||
template<typename T> struct WritableBuffer;
|
template<typename T> struct WritableBuffer;
|
||||||
|
|
||||||
gcc_nonnull_all
|
|
||||||
WritableBuffer<char>
|
WritableBuffer<char>
|
||||||
FixTagString(StringView p);
|
FixTagString(StringView p);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user