Urs Fleisch
d87b2dad48
Inspection: Expression can be simplified
2024-01-21 20:46:27 +01:00
Urs Fleisch
613355665c
Inspection: Variable can be moved to inner scope
2024-01-21 20:46:27 +01:00
Urs Fleisch
dfe2aa5253
Inspection: Variable can be moved to init statement
2024-01-21 20:46:27 +01:00
Urs Fleisch
5d921c6325
Inspection: Variable can be made constexpr
2024-01-21 20:46:27 +01:00
Urs Fleisch
710522e6e1
Inspection: Result of a postfix operator is discarded
2024-01-21 20:46:27 +01:00
Urs Fleisch
6b17aa3694
Inspection: Parameter can be made pointer to const
2024-01-21 20:46:27 +01:00
Urs Fleisch
b4f77a4d52
Inspection: Member function can be made const
2024-01-21 20:46:27 +01:00
Urs Fleisch
c907d8b273
Inspection: Functional-style cast is used instead of a C++ cast
2024-01-21 20:46:27 +01:00
Urs Fleisch
98175168f3
Inspection: Declaration and assignment can be joined
2024-01-21 20:46:27 +01:00
Urs Fleisch
73aff544b3
Inspection: C-style cast is used instead of a C++ cast
2024-01-21 20:46:27 +01:00
Rosen Penev
9cbb6615d5
clang-tidy: use using
...
Found with modernize-use-using
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-01-19 21:57:55 +01:00
Rosen Penev
8b7b48cc9b
clang-tidy: add ending namespace comments
...
Found with llvm-namespace
2024-01-19 21:57:55 +01:00
Rosen Penev
be8d71dad8
MSVC: fix signed/unsigned comparison
...
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-01-19 21:57:55 +01:00
Rosen Penev
6abbe579a2
clang-tidy: remove virtual from prot destructors
...
Found with cppcoreguidelines-virtual-class-destructor
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-01-19 21:57:55 +01:00
Rosen Penev
208fc93aaa
cppcheck: match function argument names
...
Found with funcArgNamesDifferent
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-01-19 21:57:55 +01:00
Rosen Penev
769feafbe0
cppcheck: include system headers with <>
...
Found with missingInclude
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-01-19 21:57:55 +01:00
Rosen Penev
dfef09f134
cppcheck: assign d to a value
...
Found with operatorEqVarError, missingMemberCopy
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-01-19 21:57:55 +01:00
Rosen Penev
3a003c1229
cppcheck: add const
...
Found with constVariablePointer, constParameterPointer
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-01-19 21:57:55 +01:00
Rosen Penev
8b9a260d18
clang-tidy: fix doubled cases
...
Found with bugprone-branch-clone
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-01-19 21:57:55 +01:00
Rosen Penev
c2eb6b59b5
clang-tidy: avoid endl
...
Found with performance-avoid-endl
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-01-19 21:57:55 +01:00
Rosen Penev
99ba7635be
clang-tidy: remove pointless const
...
Found with cppcoreguidelines-avoid-const-or-ref-data-members
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-01-19 21:57:55 +01:00
Rosen Penev
82b5ded8ee
tvariant: fix -Wconversion warning
...
char -> wchar_t. Just directly use int and remove the cast.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-01-19 21:57:55 +01:00
Urs Fleisch
0318201fbd
Make classes with destructor as only virtual member non-virtual
...
These classes are probably not meant to be used polymorphically.
2024-01-17 21:25:44 +01:00
Urs Fleisch
6c1ba88eab
Make Frame::Header::size(), Frame::headerSize() const
2024-01-17 21:25:44 +01:00
Urs Fleisch
fb0f7dfa57
More API documentation corrections
2024-01-17 20:54:56 +01:00
Urs Fleisch
c5d798a50d
Correct the API documentation
2024-01-04 17:18:23 +01:00
Urs Fleisch
ef013b76db
Add checks for the expected sizes of new public classes
2024-01-02 14:16:22 +01:00
Urs Fleisch
a6dbc70644
Fix shadowArgument issue reported by cppcheck
2024-01-02 13:50:11 +01:00
Urs Fleisch
9a026976ae
Do not use std::visit() for std::variant
...
It is not supported for macOS 10.13 and earlier, see
https://stackoverflow.com/questions/53946674/noexcept-visitation-for-stdvariant .
2023-12-29 07:36:03 +01:00
Urs Fleisch
bd4c9cbf97
Support installation alongside TagLib 1 with -DTAGLIB_INSTALL_SUFFIX=-2
2023-12-24 14:16:15 +01:00
Urs Fleisch
7dc8bfc806
Fix property mappings
...
For MP4 map ENCODEDBY to ©enc instead of ©too, which is now mapped to
ENCODING.
For ASF, add new properties ENCODINGTIME (WM/EncodingTime) and FILEWEBPAGE
(WM/AudioFileURL).
2023-12-24 08:42:15 +01:00
Rosen Penev
1a1ee8b54f
remove pointless static in namespace
...
Use constexpr too
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-12-22 13:41:34 +01:00
Rosen Penev
cd044bfc8f
clang-tidy: namespace comment
...
Found with llvm-namespace-comment
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-12-22 13:41:34 +01:00
Rosen Penev
7eda31e6ef
clang-tidy: use empty()
...
Found with readability-container-size-empty
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-12-22 13:41:34 +01:00
Rosen Penev
0e6f888d4d
clang-tidy: pass by value
...
Found with modernize-pass-by-value
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-12-22 13:41:34 +01:00
Rosen Penev
b07db7510f
clang-tidy: use const references
...
Found with performance-unnecessary-value-param
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-12-22 13:41:34 +01:00
Rosen Penev
1635d4d563
clang-tidy: use auto
...
Found with modernize-use-auto
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-12-22 13:41:34 +01:00
Rosen Penev
6d0f0ad170
use to_string
...
Lighterweight function.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-12-22 13:41:34 +01:00
Rosen Penev
eaf7955c63
gcc: remove old style cast
...
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-12-22 13:41:34 +01:00
Rosen Penev
78c489d9cc
clang: remove redundant comma
...
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-12-22 13:41:34 +01:00
Urs Fleisch
56fa36934e
Unify File constructors with ID3v2::FrameFactory parameter ( #1196 )
...
Make constructors consistent so that the FrameFactory is at the
end and optional. Mark the alternative constructors as deprecated.
2023-12-22 13:41:13 +01:00
Urs Fleisch
0dff3150c1
Remove UTF16LE means swap compatibility hack
2023-12-22 13:40:56 +01:00
Urs Fleisch
e414987344
C bindings: Add missing types for taglib_file_new_type()
2023-12-22 13:40:18 +01:00
Urs Fleisch
47184c4447
Update documentation for version 2.0
2023-12-22 13:39:51 +01:00
Urs Fleisch
ab0437db0e
Apply VISIBILITY_HIDDEN also to C++ files
...
It was only used for C files, thereby making symbols of internal classes
like TagUnion visible.
2023-12-20 21:30:15 +01:00
Stephen F. Booth
1ee7493abc
Use offset_t in XM::File::save()
2023-12-20 12:05:26 +01:00
Stephen F. Booth
d869f1b3e4
Fix implicit conversion
2023-12-20 12:02:38 +01:00
Stephen F. Booth
2044b31698
Fix chunk ID validation
...
According to EA IFF 85:
Type IDs
A "type ID", "property name", "FORM type", or any other IFF identifier
is a 32-bit value: the concatenation of four ASCII characters in the
range R S (SP, hex 20) through R~S (hex 7E). Spaces (hex 20) should
not precede printing characters; trailing spaces are ok. Control characters
are forbidden.
2023-12-18 17:29:39 +01:00
Stephen F. Booth
6e0741bcdc
Fix incorrect commit
2023-12-18 17:29:39 +01:00
Stephen F. Booth
e9a671476b
Remove extraneous ;
2023-12-18 17:29:39 +01:00