mpd/src/util
Jacob Vosmaer dca0519336 Clang: only use [[fallthrough]] in C++ files
It appears that [[fallthrough]] is valid in C++ but not in C. And
in some Clang versions (e.g. Clang 11 on macOS), Clang is pedantic
about this and considers it an error to use [[fallthrough]] in a
.c file such as src/util/format.c.

This changes makes gcc_fallthrough a no-op under Clang in C files.
2019-12-31 13:54:09 +01:00
..
Alloc.cxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
Alloc.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
AllocatedArray.hxx util/AllocatedArray: import std::swap 2018-12-28 17:18:41 +01:00
AllocatedString.cxx util/AllocatedString: implement AllocatedString<wchar_t>::Duplicate() 2017-07-05 10:26:39 +02:00
AllocatedString.hxx util/AllocatedString: add method data() 2017-09-13 10:34:12 +02:00
ASCII.hxx util/ASCII: add StringStartsWithCaseASCII() 2018-08-02 10:42:28 +02:00
BindMethod.hxx util/BindMethod: add "noexcept" 2018-08-20 13:45:41 +02:00
bit_reverse.c *: copyright year 2018 2018-10-31 17:54:59 +01:00
bit_reverse.h *: copyright year 2018 2018-10-31 17:54:59 +01:00
ByteReverse.cxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
ByteReverse.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
Cast.hxx util/Cast: remove redundant inline keywords from constexpr functions 2019-01-21 21:17:58 +01:00
CharUtil.hxx util/CharUtil: remove redundant inline keywords from constexpr functions 2019-01-21 21:18:23 +01:00
CircularBuffer.hxx util/{Const,Writable}Buffer, ...: rename IsEmpty() to empty(), imitating STL 2017-11-10 19:24:33 +01:00
Clamp.hxx AUTHORS, ...: update my email address 2017-01-17 11:54:55 +01:00
Compiler.h Clang: only use [[fallthrough]] in C++ files 2019-12-31 13:54:09 +01:00
ConcatString.hxx util/ConcatString: return the end pointer 2017-05-16 11:56:56 +02:00
ConstBuffer.hxx util/{Const,Writable}Buffer: add method SetEnd() 2018-08-21 08:20:17 +02:00
DeleteDisposer.hxx util/DeleteDisposer: convert struct to class 2017-09-13 10:35:51 +02:00
DivideString.cxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
DivideString.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
Domain.hxx AUTHORS, ...: update my email address 2017-01-17 11:54:55 +01:00
DynamicFifoBuffer.hxx util/DynamicFifoBuffer: add noexcept 2018-12-28 17:06:01 +01:00
Exception.cxx util/Exception: update copyright 2018-08-21 08:20:52 +02:00
Exception.hxx util/Exception: update copyright 2018-08-21 08:20:52 +02:00
ForeignFifoBuffer.hxx util/ForeignFifoBuffer: shift the buffer in MoveFrom() on demand 2018-08-20 15:21:05 +02:00
format.c util/Compiler.h: add gcc_fallthrough 2019-12-23 17:53:57 +01:00
format.h *: copyright year 2018 2018-10-31 17:54:59 +01:00
FormatString.cxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
FormatString.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
HexFormat.cxx lib/gcrypt/MD5: move code to util/HexFormat.cxx 2018-07-26 17:46:56 +02:00
HexFormat.hxx lib/gcrypt/MD5: move code to util/HexFormat.cxx 2018-07-26 17:46:56 +02:00
HugeAllocator.cxx Merge branch 'v0.20.x' 2017-12-16 20:56:06 +01:00
HugeAllocator.hxx Merge branch 'v0.20.x' 2017-12-16 20:56:06 +01:00
IterableSplitString.hxx util/IterableSplitString: use operator==(nullptr_t) 2018-08-20 15:35:09 +02:00
LazyRandomEngine.cxx check.h: remove obsolete header 2018-11-19 16:33:49 +01:00
LazyRandomEngine.hxx check.h: remove obsolete header 2018-11-19 16:33:49 +01:00
Macros.hxx AUTHORS, ...: update my email address 2017-01-17 11:54:55 +01:00
Manual.hxx util/Manual: add static method Cast() 2018-08-20 15:35:43 +02:00
meson.build util/Time*: move to time/ 2019-12-16 23:02:14 +01:00
MimeType.cxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
MimeType.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
NumberParser.hxx protocol/ArgParser: move strtof()/strtod() switch to util/NumberParser.hxx 2018-02-09 22:54:22 +01:00
OffsetPointer.hxx util/OffsetPointer: remove redundant inline keywords from constexpr functions 2019-01-21 21:19:09 +01:00
OptionDef.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
OptionParser.cxx util/OptionParser: support option values 2018-01-17 11:14:57 +01:00
OptionParser.hxx util/OptionParser: support option values 2018-01-17 11:14:57 +01:00
PeakBuffer.cxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
PeakBuffer.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
PrintException.cxx util/PrintException, ...: update copyright 2019-12-04 12:33:36 +01:00
PrintException.hxx util/PrintException, ...: update copyright 2019-12-04 12:33:36 +01:00
RecursiveMap.hxx db/Interface: CollectUniqueTags() allows multiple "groups" 2019-06-16 10:39:29 +02:00
ReusableArray.hxx Compiler.h: add gcc_returns_nonnull, gcc_returns_twice 2017-12-18 23:00:13 +01:00
RuntimeError.hxx util/RuntimeError: fix typo 2018-08-20 15:22:24 +02:00
ScopeExit.hxx util/ScopeExit: include cleanup 2017-05-16 22:56:30 +02:00
SliceBuffer.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
SparseBuffer.cxx util/SparseBuffer: new utility class 2018-06-22 22:18:26 +02:00
SparseBuffer.hxx util/SparseBuffer: new utility class 2018-06-22 22:18:26 +02:00
SplitString.cxx util/StringUtil: move strip functions to StringStrip.cxx 2017-07-05 17:20:02 +02:00
SplitString.hxx util/SplitString: add "noexcept" 2017-05-16 10:23:50 +02:00
StaticFifoBuffer.hxx util/StaticFifoBuffer: add GetAvailable() 2019-08-02 22:49:55 +02:00
StringAPI.hxx util/WStringAPI: add wcscoll() wrapper 2018-09-06 19:39:28 +02:00
StringBuffer.hxx util/StringBuffer: use std::size_t instead of size_t 2019-12-16 22:51:23 +01:00
StringCompare.cxx util/StringCompare: add StringEndsWithIgnoreCase(), StringStartsWithIgnoreCase() 2018-09-06 19:52:43 +02:00
StringCompare.hxx util/StringCompare: add StringAfterPrefixIgnoreCase() 2018-10-29 14:34:29 +01:00
StringFormat.hxx util/StringBuffer: use std::size_t instead of size_t 2019-12-16 22:51:23 +01:00
StringPointer.hxx AUTHORS, ...: update my email address 2017-01-17 11:54:55 +01:00
StringStrip.cxx util/StringStrip: add more "nonnull" attributes 2018-08-20 16:28:43 +02:00
StringStrip.hxx util/StringStrip: more API documentation 2018-08-20 16:30:46 +02:00
StringUtil.cxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
StringUtil.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
StringView.cxx util/{Const,Writable}Buffer, ...: rename IsEmpty() to empty(), imitating STL 2017-11-10 19:24:33 +01:00
StringView.hxx util/StringView: add SkipPrefix(), RemoveSuffix() 2019-02-19 11:51:32 +01:00
TemplateString.hxx util/TemplateString: new utility library 2018-06-03 12:13:47 +02:00
TextFile.hxx AUTHORS, ...: update my email address 2017-01-17 11:54:55 +01:00
Tokenizer.cxx check.h: remove obsolete header 2018-11-19 16:33:49 +01:00
Tokenizer.hxx AUTHORS, ...: update my email address 2017-01-17 11:54:55 +01:00
TruncateString.cxx util/TruncateString: rename CopyString() to CopyTruncateString() 2017-07-05 17:15:58 +02:00
TruncateString.hxx util/TruncateString: rename CopyString() to CopyTruncateString() 2017-07-05 17:15:58 +02:00
TStringView.hxx util/StringView: add default constructors 2017-09-13 12:59:31 +02:00
UriUtil.cxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
UriUtil.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
UTF8.cxx *: add "noexcept" to many, many function prototypes 2017-05-08 14:44:49 +02:00
UTF8.hxx *: add "noexcept" to many, many function prototypes 2017-05-08 14:44:49 +02:00
VarSize.hxx Compiler.h: add gcc_returns_nonnull, gcc_returns_twice 2017-12-18 23:00:13 +01:00
WCharUtil.hxx Util/CharUtil: add wchar_t overloads 2017-09-12 18:22:02 +02:00
WritableBuffer.hxx util/{Const,Writable}Buffer: add method SetEnd() 2018-08-21 08:20:17 +02:00
WStringAPI.hxx Util/WStringAPI: non-Windows implementation of _wcs*cmp() 2018-09-06 19:49:45 +02:00
WStringCompare.cxx util/StringCompare: add StringEndsWithIgnoreCase(), StringStartsWithIgnoreCase() 2018-09-06 19:52:43 +02:00
WStringCompare.hxx util/StringCompare: add StringEndsWithIgnoreCase(), StringStartsWithIgnoreCase() 2018-09-06 19:52:43 +02:00
WStringView.hxx util/WStringView: add missing include 2019-01-22 08:38:03 +01:00