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
093e5542
Commit
093e5542
authored
Nov 20, 2019
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant qualification
parent
d0696b0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
include/fmt/format.h
include/fmt/format.h
+9
-10
No files found.
include/fmt/format.h
View file @
093e5542
...
@@ -89,7 +89,7 @@ template <typename Exception> inline void do_throw(const Exception& x) {
...
@@ -89,7 +89,7 @@ template <typename Exception> inline void do_throw(const Exception& x) {
}
}
}
// namespace internal
}
// namespace internal
FMT_END_NAMESPACE
FMT_END_NAMESPACE
# define FMT_THROW(x)
fmt::
internal::do_throw(x)
# define FMT_THROW(x) internal::do_throw(x)
# else
# else
# define FMT_THROW(x) throw x
# define FMT_THROW(x) throw x
# endif
# endif
...
@@ -160,7 +160,7 @@ inline uint32_t clz(uint32_t x) {
...
@@ -160,7 +160,7 @@ inline uint32_t clz(uint32_t x) {
# pragma warning(suppress : 6102)
# pragma warning(suppress : 6102)
return
31
-
r
;
return
31
-
r
;
}
}
# define FMT_BUILTIN_CLZ(n)
fmt::
internal::clz(n)
# define FMT_BUILTIN_CLZ(n) internal::clz(n)
# if defined(_WIN64) && !defined(__clang__)
# if defined(_WIN64) && !defined(__clang__)
# pragma intrinsic(_BitScanReverse64)
# pragma intrinsic(_BitScanReverse64)
...
@@ -185,7 +185,7 @@ inline uint32_t clzll(uint64_t x) {
...
@@ -185,7 +185,7 @@ inline uint32_t clzll(uint64_t x) {
# pragma warning(suppress : 6102)
# pragma warning(suppress : 6102)
return
63
-
r
;
return
63
-
r
;
}
}
# define FMT_BUILTIN_CLZLL(n)
fmt::
internal::clzll(n)
# define FMT_BUILTIN_CLZLL(n) internal::clzll(n)
}
// namespace internal
}
// namespace internal
FMT_END_NAMESPACE
FMT_END_NAMESPACE
#endif
#endif
...
@@ -1000,9 +1000,8 @@ class utf16_to_utf8 {
...
@@ -1000,9 +1000,8 @@ class utf16_to_utf8 {
FMT_API
int
convert
(
wstring_view
s
);
FMT_API
int
convert
(
wstring_view
s
);
};
};
FMT_API
void
format_windows_error
(
fmt
::
internal
::
buffer
<
char
>&
out
,
FMT_API
void
format_windows_error
(
internal
::
buffer
<
char
>&
out
,
int
error_code
,
int
error_code
,
string_view
message
)
FMT_NOEXCEPT
;
fmt
::
string_view
message
)
FMT_NOEXCEPT
;
#endif
#endif
template
<
typename
T
=
void
>
struct
null
{};
template
<
typename
T
=
void
>
struct
null
{};
...
@@ -1763,7 +1762,7 @@ template <typename Range> class basic_writer {
...
@@ -1763,7 +1762,7 @@ template <typename Range> class basic_writer {
}
}
// Formats a floating-point number (float, double, or long double).
// Formats a floating-point number (float, double, or long double).
template
<
typename
T
,
bool
USE_GRISU
=
fmt
::
internal
::
use_grisu
<
T
>()
>
template
<
typename
T
,
bool
USE_GRISU
=
internal
::
use_grisu
<
T
>()
>
void
write_fp
(
T
value
,
const
format_specs
&
specs
);
void
write_fp
(
T
value
,
const
format_specs
&
specs
);
/** Writes a character to the buffer. */
/** Writes a character to the buffer. */
...
@@ -2804,7 +2803,7 @@ class FMT_API system_error : public std::runtime_error {
...
@@ -2804,7 +2803,7 @@ class FMT_API system_error : public std::runtime_error {
\endrst
\endrst
*/
*/
FMT_API
void
format_system_error
(
internal
::
buffer
<
char
>&
out
,
int
error_code
,
FMT_API
void
format_system_error
(
internal
::
buffer
<
char
>&
out
,
int
error_code
,
fmt
::
string_view
message
)
FMT_NOEXCEPT
;
string_view
message
)
FMT_NOEXCEPT
;
template
<
typename
Range
>
template
<
typename
Range
>
template
<
typename
T
,
bool
USE_GRISU
>
template
<
typename
T
,
bool
USE_GRISU
>
...
@@ -3455,7 +3454,7 @@ template <typename OutputIt> struct format_to_n_result {
...
@@ -3455,7 +3454,7 @@ template <typename OutputIt> struct format_to_n_result {
template
<
typename
OutputIt
,
typename
Char
=
typename
OutputIt
::
value_type
>
template
<
typename
OutputIt
,
typename
Char
=
typename
OutputIt
::
value_type
>
using
format_to_n_context
=
using
format_to_n_context
=
format_context_t
<
fmt
::
internal
::
truncating_iterator
<
OutputIt
>
,
Char
>
;
format_context_t
<
internal
::
truncating_iterator
<
OutputIt
>
,
Char
>
;
template
<
typename
OutputIt
,
typename
Char
=
typename
OutputIt
::
value_type
>
template
<
typename
OutputIt
,
typename
Char
=
typename
OutputIt
::
value_type
>
using
format_to_n_args
=
basic_format_args
<
format_to_n_context
<
OutputIt
,
Char
>>
;
using
format_to_n_args
=
basic_format_args
<
format_to_n_context
<
OutputIt
,
Char
>>
;
...
@@ -3502,7 +3501,7 @@ inline std::basic_string<Char> internal::vformat(
...
@@ -3502,7 +3501,7 @@ inline std::basic_string<Char> internal::vformat(
basic_format_args
<
buffer_context
<
Char
>>
args
)
{
basic_format_args
<
buffer_context
<
Char
>>
args
)
{
basic_memory_buffer
<
Char
>
buffer
;
basic_memory_buffer
<
Char
>
buffer
;
internal
::
vformat_to
(
buffer
,
format_str
,
args
);
internal
::
vformat_to
(
buffer
,
format_str
,
args
);
return
fmt
::
to_string
(
buffer
);
return
to_string
(
buffer
);
}
}
/**
/**
...
...
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