Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
e9b9b0ae
Commit
e9b9b0ae
authored
Jul 18, 2019
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clang-format
parent
ec24342b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
include/fmt/core.h
include/fmt/core.h
+2
-2
include/fmt/format.h
include/fmt/format.h
+6
-7
No files found.
include/fmt/core.h
View file @
e9b9b0ae
...
@@ -1201,8 +1201,8 @@ template <typename Context> class basic_format_args {
...
@@ -1201,8 +1201,8 @@ template <typename Context> class basic_format_args {
int
max_size
()
const
{
int
max_size
()
const
{
unsigned
long
long
max_packed
=
internal
::
max_packed_args
;
unsigned
long
long
max_packed
=
internal
::
max_packed_args
;
return
static_cast
<
int
>
(
return
static_cast
<
int
>
(
is_packed
()
?
max_packed
is_packed
()
?
max_packed
:
types_
&
~
internal
::
is_unpacked_bit
);
:
types_
&
~
internal
::
is_unpacked_bit
);
}
}
};
};
...
...
include/fmt/format.h
View file @
e9b9b0ae
...
@@ -2111,7 +2111,8 @@ struct string_view_metadata {
...
@@ -2111,7 +2111,8 @@ struct string_view_metadata {
template
<
typename
Char
>
template
<
typename
Char
>
FMT_CONSTEXPR
string_view_metadata
(
basic_string_view
<
Char
>
primary_string
,
FMT_CONSTEXPR
string_view_metadata
(
basic_string_view
<
Char
>
primary_string
,
basic_string_view
<
Char
>
view
)
basic_string_view
<
Char
>
view
)
:
offset_
(
to_unsigned
(
view
.
data
()
-
primary_string
.
data
())),
size_
(
view
.
size
())
{}
:
offset_
(
to_unsigned
(
view
.
data
()
-
primary_string
.
data
())),
size_
(
view
.
size
())
{}
FMT_CONSTEXPR
string_view_metadata
(
std
::
size_t
offset
,
std
::
size_t
size
)
FMT_CONSTEXPR
string_view_metadata
(
std
::
size_t
offset
,
std
::
size_t
size
)
:
offset_
(
offset
),
size_
(
size
)
{}
:
offset_
(
offset
),
size_
(
size
)
{}
template
<
typename
Char
>
template
<
typename
Char
>
...
@@ -2202,8 +2203,8 @@ class dynamic_specs_handler
...
@@ -2202,8 +2203,8 @@ class dynamic_specs_handler
FMT_CONSTEXPR
arg_ref_type
make_arg_ref
(
basic_string_view
<
char_type
>
arg_id
)
{
FMT_CONSTEXPR
arg_ref_type
make_arg_ref
(
basic_string_view
<
char_type
>
arg_id
)
{
context_
.
check_arg_id
(
arg_id
);
context_
.
check_arg_id
(
arg_id
);
basic_string_view
<
char_type
>
format_str
(
context_
.
begin
(),
basic_string_view
<
char_type
>
format_str
(
to_unsigned
(
context_
.
end
()
-
context_
.
begin
()));
context_
.
begin
(),
to_unsigned
(
context_
.
end
()
-
context_
.
begin
()));
const
auto
id_metadata
=
string_view_metadata
(
format_str
,
arg_id
);
const
auto
id_metadata
=
string_view_metadata
(
format_str
,
arg_id
);
return
arg_ref_type
(
id_metadata
);
return
arg_ref_type
(
id_metadata
);
}
}
...
@@ -2257,9 +2258,7 @@ template <typename SpecHandler, typename Char> struct precision_adapter {
...
@@ -2257,9 +2258,7 @@ template <typename SpecHandler, typename Char> struct precision_adapter {
explicit
FMT_CONSTEXPR
precision_adapter
(
SpecHandler
&
h
)
:
handler
(
h
)
{}
explicit
FMT_CONSTEXPR
precision_adapter
(
SpecHandler
&
h
)
:
handler
(
h
)
{}
FMT_CONSTEXPR
void
operator
()()
{
handler
.
on_dynamic_precision
(
auto_id
());
}
FMT_CONSTEXPR
void
operator
()()
{
handler
.
on_dynamic_precision
(
auto_id
());
}
FMT_CONSTEXPR
void
operator
()(
int
id
)
{
FMT_CONSTEXPR
void
operator
()(
int
id
)
{
handler
.
on_dynamic_precision
(
id
);
}
handler
.
on_dynamic_precision
(
id
);
}
FMT_CONSTEXPR
void
operator
()(
basic_string_view
<
Char
>
id
)
{
FMT_CONSTEXPR
void
operator
()(
basic_string_view
<
Char
>
id
)
{
handler
.
on_dynamic_precision
(
id
);
handler
.
on_dynamic_precision
(
id
);
}
}
...
...
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