clang-tidy: add ending namespace comments

Found with google-readability-namespace-comments

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2021-06-16 18:36:36 -07:00 committed by Urs Fleisch
parent b77e828d4b
commit 38d1d4c21c
25 changed files with 30 additions and 30 deletions

View File

@ -69,7 +69,7 @@ namespace
{
return String(s, unicodeStrings ? String::UTF8 : String::Latin1);
}
}
} // namespace
void taglib_set_strings_unicode(BOOL unicode)
{

View File

@ -70,7 +70,7 @@ namespace
return true;
}
}
} // namespace
class APE::Tag::TagPrivate
{
@ -217,7 +217,7 @@ namespace
{"RELEASESTATUS", "MUSICBRAINZ_ALBUMSTATUS" },
{"RELEASETYPE", "MUSICBRAINZ_ALBUMTYPE" }};
const size_t keyConversionsSize = sizeof(keyConversions) / sizeof(keyConversions[0]);
}
} // namespace
PropertyMap APE::Tag::properties() const
{

View File

@ -97,7 +97,7 @@ namespace
const ByteVector contentEncryptionGuid("\xFB\xB3\x11\x22\x23\xBD\xD2\x11\xB4\xB7\x00\xA0\xC9\x55\xFC\x6E", 16);
const ByteVector extendedContentEncryptionGuid("\x14\xE6\x8A\x29\x22\x26 \x17\x4C\xB9\x35\xDA\xE0\x7E\xE9\x28\x9C", 16);
const ByteVector advancedContentEncryptionGuid("\xB6\x9B\x07\x7A\xA4\xDA\x12\x4E\xA5\xCA\x91\xD3\x8D\xC1\x1A\x8D", 16);
}
} // namespace
class ASF::File::FilePrivate::BaseObject
{

View File

@ -269,7 +269,7 @@ namespace
return String();
}
}
} // namespace
PropertyMap ASF::Tag::properties() const
{

View File

@ -278,7 +278,7 @@ namespace
return 0;
}
}
} // namespace
class FileRef::FileRefPrivate : public RefCounter
{

View File

@ -55,7 +55,7 @@ namespace
const long MaxPaddingLegnth = 1024 * 1024;
const char LastBlockFlag = '\x80';
}
} // namespace
class FLAC::File::FilePrivate
{

View File

@ -49,7 +49,7 @@ namespace
return true;
}
}
} // namespace
class MP4::File::FilePrivate
{

View File

@ -50,7 +50,7 @@ namespace
return totalLength;
}
}
} // namespace
class MP4::Properties::PropertiesPrivate
{

View File

@ -953,7 +953,7 @@ namespace
return String();
}
}
} // namespace
PropertyMap MP4::Tag::properties() const
{

View File

@ -201,7 +201,7 @@ namespace
// This array looks weird, but the same as original MusePack code found at:
// https://www.musepack.net/index.php?pg=src
const unsigned short sftable [8] = { 44100, 48000, 37800, 32000, 0, 0, 0, 0 };
}
} // namespace
void MPC::Properties::readSV8(File *file, long streamLength)
{

View File

@ -224,7 +224,7 @@ namespace
L"Psybient"
};
const int genresSize = sizeof(genres) / sizeof(genres[0]);
}
} // namespace
StringList ID3v1::genreList()
{

View File

@ -75,7 +75,7 @@ namespace {
}
return l;
}
}
} // namespace
////////////////////////////////////////////////////////////////////////////////
// public methods

View File

@ -133,7 +133,7 @@ namespace
{"MIX", "MIXER"},
};
const size_t involvedPeopleSize = sizeof(involvedPeople) / sizeof(involvedPeople[0]);
}
} // namespace
const KeyConversionMap &TextIdentificationFrame::involvedPeopleMap() // static
{

View File

@ -74,7 +74,7 @@ namespace
}
return true;
}
}
} // namespace
////////////////////////////////////////////////////////////////////////////////
// static methods
@ -426,7 +426,7 @@ namespace
{"TIME", "TDRC"}, // 2.3 -> 2.4
};
const size_t deprecatedFramesSize = sizeof(deprecatedFrames) / sizeof(deprecatedFrames[0]);
}
} // namespace
String Frame::frameIDToKey(const ByteVector &id)
{

View File

@ -85,7 +85,7 @@ namespace
frame->setText(newfields);
}
}
} // namespace
class FrameFactory::FrameFactoryPrivate
{
@ -477,7 +477,7 @@ namespace
{ "IPLS", "TIPL" },
};
const size_t frameConversion3Size = sizeof(frameConversion3) / sizeof(frameConversion3[0]);
}
} // namespace
bool FrameFactory::updateFrame(Frame::Header *header) const
{

View File

@ -64,7 +64,7 @@ namespace
}
return false;
}
}
} // namespace
class ID3v2::Tag::TagPrivate
{

View File

@ -93,7 +93,7 @@ namespace
AudioProperties *audioProperties() const { return 0; }
bool save() { return false; }
};
}
} // namespace
bool MPEG::File::isSupported(IOStream *stream)
{

View File

@ -44,7 +44,7 @@ namespace
else
return page->firstPacketIndex() + page->packetCount() - 1;
}
}
} // namespace
class Ogg::File::FilePrivate
{

View File

@ -1030,7 +1030,7 @@ void ByteVector::detach()
ByteVector().swap(*this);
}
}
}
} // namespace TagLib
////////////////////////////////////////////////////////////////////////////////
// related functions

View File

@ -59,6 +59,6 @@ namespace TagLib
debugListener->printMessage(msg);
}
}
}
} // namespace TagLib
#endif

View File

@ -61,7 +61,7 @@ namespace
};
DefaultListener defaultListener;
}
} // namespace
namespace TagLib
{
@ -82,4 +82,4 @@ namespace TagLib
else
debugListener = &defaultListener;
}
}
} // namespace TagLib

View File

@ -124,7 +124,7 @@ namespace
}
#endif // _WIN32
}
} // namespace
class FileStream::FileStreamPrivate
{

View File

@ -93,4 +93,4 @@ namespace TagLib
{
return static_cast<int>(d->refCount);
}
}
} // namespace TagLib

View File

@ -134,7 +134,7 @@ namespace
data[i] = c;
}
}
}
} // namespace
namespace TagLib {
@ -712,7 +712,7 @@ void String::detach()
////////////////////////////////////////////////////////////////////////////////
const String::Type String::WCharByteOrder = wcharByteOrder();
}
} // namespace TagLib
////////////////////////////////////////////////////////////////////////////////
// related non-member functions

View File

@ -255,7 +255,7 @@ namespace
return getMetaDataChunk(block, ID_DSD_BLOCK);
}
}
} // namespace
void WavPack::Properties::read(File *file, long streamLength)
{