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
2201890d
Commit
2201890d
authored
Dec 18, 2019
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply clang-format and update inclusion guards
parent
6100ed4b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
include/fmt/core.h
include/fmt/core.h
+5
-3
include/fmt/format.h
include/fmt/format.h
+1
-1
include/fmt/os.h
include/fmt/os.h
+3
-3
No files found.
include/fmt/core.h
View file @
2201890d
...
@@ -117,8 +117,10 @@
...
@@ -117,8 +117,10 @@
# endif
# endif
#endif
#endif
// [[noreturn]] is disabled on MSVC and NVCC because of bogus unreachable code warnings.
// [[noreturn]] is disabled on MSVC and NVCC because of bogus unreachable code
#if FMT_EXCEPTIONS && FMT_HAS_CPP_ATTRIBUTE(noreturn) && !FMT_MSC_VER && !FMT_NVCC
// warnings.
#if FMT_EXCEPTIONS && FMT_HAS_CPP_ATTRIBUTE(noreturn) && !FMT_MSC_VER && \
!FMT_NVCC
# define FMT_NORETURN [[noreturn]]
# define FMT_NORETURN [[noreturn]]
#else
#else
# define FMT_NORETURN
# define FMT_NORETURN
...
@@ -208,7 +210,7 @@
...
@@ -208,7 +210,7 @@
FMT_BEGIN_NAMESPACE
FMT_BEGIN_NAMESPACE
// Implementations of enable_if_t and other
type
s for pre-C++14 systems.
// Implementations of enable_if_t and other
metafunction
s for pre-C++14 systems.
template
<
bool
B
,
class
T
=
void
>
template
<
bool
B
,
class
T
=
void
>
using
enable_if_t
=
typename
std
::
enable_if
<
B
,
T
>::
type
;
using
enable_if_t
=
typename
std
::
enable_if
<
B
,
T
>::
type
;
template
<
bool
B
,
class
T
,
class
F
>
template
<
bool
B
,
class
T
,
class
F
>
...
...
include/fmt/format.h
View file @
2201890d
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
FMT_BEGIN_NAMESPACE
FMT_BEGIN_NAMESPACE
namespace
internal
{
namespace
internal
{
template
<
typename
Exception
>
inline
void
do_throw
(
const
Exception
&
x
)
{
template
<
typename
Exception
>
inline
void
do_throw
(
const
Exception
&
x
)
{
// Silence unreachable code warnings in MSVC and NVCC because these
// Silence unreachable code warnings in MSVC and NVCC because these
// are nearly impossible to fix in a generic code.
// are nearly impossible to fix in a generic code.
volatile
bool
b
=
true
;
volatile
bool
b
=
true
;
if
(
b
)
throw
x
;
if
(
b
)
throw
x
;
...
...
include/fmt/os.h
View file @
2201890d
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
//
//
// For the license information refer to format.h.
// For the license information refer to format.h.
#ifndef FMT_
POSIX
_H_
#ifndef FMT_
OS
_H_
#define FMT_
POSIX
_H_
#define FMT_
OS
_H_
#if defined(__MINGW32__) || defined(__CYGWIN__)
#if defined(__MINGW32__) || defined(__CYGWIN__)
// Workaround MinGW bug https://sourceforge.net/p/mingw/bugs/2024/.
// Workaround MinGW bug https://sourceforge.net/p/mingw/bugs/2024/.
...
@@ -397,4 +397,4 @@ class Locale {
...
@@ -397,4 +397,4 @@ class Locale {
#endif // FMT_LOCALE
#endif // FMT_LOCALE
FMT_END_NAMESPACE
FMT_END_NAMESPACE
#endif // FMT_
POSIX
_H_
#endif // FMT_
OS
_H_
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