mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 02:29:08 +00:00
Merge branch 'fallthrough' of github.com:cppformat/cppformat
This commit is contained in:
commit
04a21bbb2e
8
format.h
8
format.h
@ -119,12 +119,6 @@
|
|||||||
# define FMT_NOEXCEPT(expr)
|
# define FMT_NOEXCEPT(expr)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if FMT_HAS_CPP_ATTRIBUTE(clang::fallthrough)
|
|
||||||
# define FMT_FALLTHROUGH [[clang::fallthrough]]
|
|
||||||
#else
|
|
||||||
# define FMT_FALLTHROUGH
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// A macro to disallow the copy constructor and operator= functions
|
// A macro to disallow the copy constructor and operator= functions
|
||||||
// This should be used in the private: declarations for a class
|
// This should be used in the private: declarations for a class
|
||||||
#define FMT_DISALLOW_COPY_AND_ASSIGN(TypeName) \
|
#define FMT_DISALLOW_COPY_AND_ASSIGN(TypeName) \
|
||||||
@ -880,7 +874,7 @@ class ArgVisitor {
|
|||||||
switch (arg.type) {
|
switch (arg.type) {
|
||||||
default:
|
default:
|
||||||
assert(false);
|
assert(false);
|
||||||
FMT_FALLTHROUGH;
|
return Result();
|
||||||
case Arg::INT:
|
case Arg::INT:
|
||||||
return FMT_DISPATCH(visit_int(arg.int_value));
|
return FMT_DISPATCH(visit_int(arg.int_value));
|
||||||
case Arg::UINT:
|
case Arg::UINT:
|
||||||
|
Loading…
Reference in New Issue
Block a user