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
8f455c10
Commit
8f455c10
authored
Oct 30, 2016
by
Lectem
Committed by
Victor Zverovich
Nov 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix newer clang warnings
parent
e599fe74
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
15 deletions
+26
-15
fmt/format.cc
fmt/format.cc
+3
-3
fmt/format.h
fmt/format.h
+23
-12
No files found.
fmt/format.cc
View file @
8f455c10
...
...
@@ -81,9 +81,9 @@ static inline fmt::internal::Null<> strerror_s(char *, std::size_t, ...) {
namespace
fmt
{
FMT_FUNC
internal
::
RuntimeError
::~
RuntimeError
()
throw
()
{}
FMT_FUNC
FormatError
::~
FormatError
()
throw
()
{}
FMT_FUNC
SystemError
::~
SystemError
()
throw
()
{}
FMT_FUNC
internal
::
RuntimeError
::~
RuntimeError
()
FMT_DTOR_NOEXCEPT
{}
FMT_FUNC
FormatError
::~
FormatError
()
FMT_DTOR_NOEXCEPT
{}
FMT_FUNC
SystemError
::~
SystemError
()
FMT_DTOR_NOEXCEPT
{}
namespace
{
...
...
fmt/format.h
View file @
8f455c10
...
...
@@ -180,22 +180,32 @@ typedef __int64 intmax_t;
# define FMT_USE_NOEXCEPT 0
#endif
#ifndef FMT_NOEXCEPT
# if FMT_EXCEPTIONS
# if FMT_USE_NOEXCEPT || FMT_HAS_FEATURE(cxx_noexcept) || \
#if FMT_USE_NOEXCEPT || FMT_HAS_FEATURE(cxx_noexcept) || \
(FMT_GCC_VERSION >= 408 && FMT_HAS_GXX_CXX11) || \
FMT_MSC_VER >= 1900
# define FMT_NOEXCEPT noexcept
# else
# define FMT_NOEXCEPT throw()
# endif
# define FMT_DETECTED_NOEXCEPT noexcept
#else
# define FMT_DETECTED_NOEXCEPT throw()
#endif
#ifndef FMT_NOEXCEPT
# if FMT_EXCEPTIONS
# define FMT_NOEXCEPT FMT_DETECTED_NOEXCEPT
# else
# define FMT_NOEXCEPT
# endif
#endif
// This is needed because GCC still uses throw() in its headers when exceptions
// are disabled.
#if FMT_GCC_VERSION
# define FMT_DTOR_NOEXCEPT FMT_DETECTED_NOEXCEPT
#else
# define FMT_DTOR_NOEXCEPT FMT_NOEXCEPT
#endif
#ifndef FMT_OVERRIDE
# if
FMT_USE_OVERRIDE
|| FMT_HAS_FEATURE(cxx_override) || \
# if
(defined(FMT_USE_OVERRIDE) && FMT_USE_OVERRIDE)
|| FMT_HAS_FEATURE(cxx_override) || \
(FMT_GCC_VERSION >= 408 && FMT_HAS_GXX_CXX11) || \
FMT_MSC_VER >= 1900
# define FMT_OVERRIDE override
...
...
@@ -204,7 +214,6 @@ typedef __int64 intmax_t;
# endif
#endif
// A macro to disallow the copy constructor and operator= functions
// This should be used in the private: declarations for a class
#ifndef FMT_USE_DELETED_FUNCTIONS
...
...
@@ -550,7 +559,8 @@ class FormatError : public std::runtime_error {
public:
explicit
FormatError
(
CStringRef
message
)
:
std
::
runtime_error
(
message
.
c_str
())
{}
~
FormatError
()
throw
();
FormatError
(
const
FormatError
&
ferr
)
:
std
::
runtime_error
(
ferr
)
{}
~
FormatError
()
FMT_DTOR_NOEXCEPT
;
};
namespace
internal
{
...
...
@@ -1376,7 +1386,8 @@ struct NamedArgWithType : NamedArg<Char> {
class
RuntimeError
:
public
std
::
runtime_error
{
protected:
RuntimeError
()
:
std
::
runtime_error
(
""
)
{}
~
RuntimeError
()
throw
();
RuntimeError
(
const
RuntimeError
&
rerr
)
:
std
::
runtime_error
(
rerr
)
{}
~
RuntimeError
()
FMT_DTOR_NOEXCEPT
;
};
template
<
typename
Char
>
...
...
@@ -2325,7 +2336,7 @@ class SystemError : public internal::RuntimeError {
}
FMT_VARIADIC_CTOR
(
SystemError
,
init
,
int
,
CStringRef
)
~
SystemError
()
throw
()
;
~
SystemError
()
FMT_DTOR_NOEXCEPT
;
int
error_code
()
const
{
return
error_code_
;
}
};
...
...
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