Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
08491fcd
Commit
08491fcd
authored
Oct 13, 2021
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag/Format: use [[gnu::pure]]
parent
abed633f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
Format.cxx
src/tag/Format.cxx
+2
-2
Format.hxx
src/tag/Format.hxx
+1
-3
No files found.
src/tag/Format.cxx
View file @
08491fcd
...
...
@@ -52,7 +52,7 @@ IsUnsafeChar(char ch)
(
unsigned
char
)
ch
<
0x20
;
}
gcc_pure
[[
gnu
::
pure
]]
static
bool
HasUnsafeChar
(
const
char
*
s
)
noexcept
{
...
...
@@ -78,7 +78,7 @@ SanitizeString(const char *s, char *buffer, size_t buffer_size) noexcept
return
buffer
;
}
gcc_pure
gcc_nonnull_all
[[
gnu
::
pure
]]
[[
gnu
::
nonnull
]]
static
const
char
*
TagGetter
(
const
void
*
object
,
const
char
*
name
)
noexcept
{
...
...
src/tag/Format.hxx
View file @
08491fcd
...
...
@@ -20,11 +20,9 @@
#ifndef MPD_TAG_FORMAT_HXX
#define MPD_TAG_FORMAT_HXX
#include "util/Compiler.h"
struct
Tag
;
gcc_malloc
gcc_nonnull_all
[[
gnu
::
malloc
]]
[[
gnu
::
nonnull
]]
char
*
FormatTag
(
const
Tag
&
tag
,
const
char
*
format
)
noexcept
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment