mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[gardening] C++ gardening: Terminate namespaces, fix argument names, ...
Changes: * Terminate all namespaces with the correct closing comment. * Make sure argument names in comments match the corresponding parameter name. * Remove redundant get() calls on smart pointers. * Prefer using "override" or "final" instead of "virtual". Remove "virtual" where appropriate.
This commit is contained in:
@@ -1538,8 +1538,8 @@ SourceFile::getDiscriminatorForPrivateValue(const ValueDecl *D) const {
|
||||
// FIXME: And there are more compact ways to encode a 16-byte value.
|
||||
buffer.reserve(buffer.size() + 2*llvm::array_lengthof(result));
|
||||
for (uint8_t byte : result) {
|
||||
buffer.push_back(llvm::hexdigit(byte >> 4, /*lowercase=*/false));
|
||||
buffer.push_back(llvm::hexdigit(byte & 0xF, /*lowercase=*/false));
|
||||
buffer.push_back(llvm::hexdigit(byte >> 4, /*LowerCase=*/false));
|
||||
buffer.push_back(llvm::hexdigit(byte & 0xF, /*LowerCase=*/false));
|
||||
}
|
||||
|
||||
PrivateDiscriminator = getASTContext().getIdentifier(buffer);
|
||||
|
||||
Reference in New Issue
Block a user