From c9325cea0aa43f328644157dee4eafe3d7b45e6f Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 8 Oct 2024 15:34:56 +0200 Subject: Name local variables using lower_case ...and private members using lower_case_ --- src/buildtool/storage/compactifier.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/buildtool/storage/compactifier.cpp') diff --git a/src/buildtool/storage/compactifier.cpp b/src/buildtool/storage/compactifier.cpp index 2a6368ca..3bd39324 100644 --- a/src/buildtool/storage/compactifier.cpp +++ b/src/buildtool/storage/compactifier.cpp @@ -157,10 +157,10 @@ template } // Calculate reference hash size: - auto const kHashSize = + auto const hash_size = task.cas.GetHashFunction().MakeHasher().GetHashLength(); - auto const kFileNameSize = - kHashSize - FileStorageData::kDirectoryNameLength; + auto const file_name_size = + hash_size - FileStorageData::kDirectoryNameLength; // Check the directory itself is valid: std::string const d_name = directory.filename(); @@ -178,8 +178,8 @@ template } FileSystemManager::ReadDirEntryFunc callback = - [&task, &directory, kFileNameSize](std::filesystem::path const& file, - ObjectType type) -> bool { + [&task, &directory, file_name_size](std::filesystem::path const& file, + ObjectType type) -> bool { // Directories are unexpected in storage subdirectories if (IsTreeObject(type)) { task.Log(LogLevel::Error, @@ -188,9 +188,9 @@ template return false; } - // Check file has a hexadecimal name of length kFileNameSize: + // Check file has a hexadecimal name of length file_name_size: std::string const f_name = file.filename(); - if (f_name.size() == kFileNameSize and FromHexString(f_name)) { + if (f_name.size() == file_name_size and FromHexString(f_name)) { return true; } auto const path = directory / file; -- cgit v1.2.3