diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-08 15:34:56 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-08 15:41:50 +0200 |
commit | c9325cea0aa43f328644157dee4eafe3d7b45e6f (patch) | |
tree | 7c688b9cfd8acf45771193f41d69639f9a47dfab /src/buildtool/storage/compactifier.cpp | |
parent | 0e024eb055e6e8272f419e898ae9eefd0085c34f (diff) | |
download | justbuild-c9325cea0aa43f328644157dee4eafe3d7b45e6f.tar.gz |
Name local variables using lower_case
...and private members using lower_case_
Diffstat (limited to 'src/buildtool/storage/compactifier.cpp')
-rw-r--r-- | src/buildtool/storage/compactifier.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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 <ObjectType kType> } // 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 <ObjectType kType> } 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 <ObjectType kType> 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; |