set(
source_files
- Args.cpp
- Config.cpp
- Context.cpp
- Depfile.cpp
- Hash.cpp
- ProgressBar.cpp
argprocessing.cpp
+ args.cpp
ccache.cpp
compopt.cpp
+ config.cpp
+ context.cpp
+ depfile.cpp
execute.cpp
+ hash.cpp
hashutil.cpp
language.cpp
+ progressbar.cpp
version.cpp
)
if(INODE_CACHE_SUPPORTED)
- list(APPEND source_files InodeCache.cpp)
+ list(APPEND source_files inodecache.cpp)
endif()
if(NOT WIN32)
- list(APPEND source_files SignalHandler.cpp)
+ list(APPEND source_files signalhandler.cpp)
endif()
file(GLOB headers *.hpp)
#include "argprocessing.hpp"
-#include <ccache/Args.hpp>
-#include <ccache/ArgsInfo.hpp>
-#include <ccache/Context.hpp>
-#include <ccache/Depfile.hpp>
+#include <ccache/args.hpp>
+#include <ccache/argsinfo.hpp>
#include <ccache/compopt.hpp>
+#include <ccache/context.hpp>
#include <ccache/core/common.hpp>
+#include <ccache/depfile.hpp>
#include <ccache/language.hpp>
-#include <ccache/util/DirEntry.hpp>
-#include <ccache/util/Tokenizer.hpp>
#include <ccache/util/assertions.hpp>
+#include <ccache/util/direntry.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/logging.hpp>
#include <ccache/util/path.hpp>
#include <ccache/util/string.hpp>
+#include <ccache/util/tokenizer.hpp>
#include <ccache/util/wincompat.hpp>
#ifdef HAVE_UNISTD_H
#pragma once
-#include <ccache/Args.hpp>
-#include <ccache/core/Statistic.hpp>
+#include <ccache/args.hpp>
+#include <ccache/core/statistic.hpp>
#include <tl/expected.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "Args.hpp"
+#include "args.hpp"
#include <ccache/core/exceptions.hpp>
#include <ccache/util/file.hpp>
#pragma once
-#include <ccache/Args.hpp>
+#include <ccache/args.hpp>
#include <filesystem>
#include <optional>
#include "ccache.hpp"
-#include <ccache/Args.hpp>
-#include <ccache/ArgsInfo.hpp>
-#include <ccache/Context.hpp>
-#include <ccache/Depfile.hpp>
-#include <ccache/Hash.hpp>
-#include <ccache/SignalHandler.hpp>
#include <ccache/argprocessing.hpp>
+#include <ccache/args.hpp>
+#include <ccache/argsinfo.hpp>
#include <ccache/compopt.hpp>
-#include <ccache/core/CacheEntry.hpp>
-#include <ccache/core/Manifest.hpp>
-#include <ccache/core/MsvcShowIncludesOutput.hpp>
-#include <ccache/core/Result.hpp>
-#include <ccache/core/ResultRetriever.hpp>
-#include <ccache/core/Sloppiness.hpp>
-#include <ccache/core/Statistic.hpp>
-#include <ccache/core/Statistics.hpp>
-#include <ccache/core/StatisticsCounters.hpp>
-#include <ccache/core/StatsLog.hpp>
+#include <ccache/context.hpp>
+#include <ccache/core/cacheentry.hpp>
#include <ccache/core/common.hpp>
#include <ccache/core/exceptions.hpp>
#include <ccache/core/mainoptions.hpp>
+#include <ccache/core/manifest.hpp>
+#include <ccache/core/msvcshowincludesoutput.hpp>
+#include <ccache/core/result.hpp>
+#include <ccache/core/resultretriever.hpp>
+#include <ccache/core/sloppiness.hpp>
+#include <ccache/core/statistic.hpp>
+#include <ccache/core/statistics.hpp>
+#include <ccache/core/statisticscounters.hpp>
+#include <ccache/core/statslog.hpp>
#include <ccache/core/types.hpp>
+#include <ccache/depfile.hpp>
#include <ccache/execute.hpp>
+#include <ccache/hash.hpp>
#include <ccache/hashutil.hpp>
-#include <ccache/storage/Storage.hpp>
-#include <ccache/util/Bytes.hpp>
-#include <ccache/util/DirEntry.hpp>
-#include <ccache/util/Duration.hpp>
-#include <ccache/util/Fd.hpp>
-#include <ccache/util/FileStream.hpp>
-#include <ccache/util/Finalizer.hpp>
-#include <ccache/util/TemporaryFile.hpp>
-#include <ccache/util/TimePoint.hpp>
-#include <ccache/util/Tokenizer.hpp>
-#include <ccache/util/UmaskScope.hpp>
+#include <ccache/signalhandler.hpp>
+#include <ccache/storage/storage.hpp>
#include <ccache/util/assertions.hpp>
+#include <ccache/util/bytes.hpp>
#include <ccache/util/conversion.hpp>
+#include <ccache/util/direntry.hpp>
+#include <ccache/util/duration.hpp>
#include <ccache/util/environment.hpp>
#include <ccache/util/expected.hpp>
+#include <ccache/util/fd.hpp>
#include <ccache/util/file.hpp>
+#include <ccache/util/filestream.hpp>
#include <ccache/util/filesystem.hpp>
+#include <ccache/util/finalizer.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/logging.hpp>
#include <ccache/util/path.hpp>
#include <ccache/util/process.hpp>
#include <ccache/util/string.hpp>
+#include <ccache/util/temporaryfile.hpp>
#include <ccache/util/time.hpp>
+#include <ccache/util/timepoint.hpp>
+#include <ccache/util/tokenizer.hpp>
+#include <ccache/util/umaskscope.hpp>
#include <ccache/util/wincompat.hpp>
#include <fcntl.h>
#pragma once
-#include <ccache/Args.hpp>
-#include <ccache/Config.hpp>
+#include <ccache/args.hpp>
+#include <ccache/config.hpp>
#include <filesystem>
#include <functional>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "Config.hpp"
+#include "config.hpp"
-#include <ccache/core/AtomicFile.hpp>
-#include <ccache/core/Sloppiness.hpp>
+#include <ccache/core/atomicfile.hpp>
#include <ccache/core/common.hpp>
#include <ccache/core/exceptions.hpp>
-#include <ccache/util/DirEntry.hpp>
-#include <ccache/util/Tokenizer.hpp>
-#include <ccache/util/UmaskScope.hpp>
+#include <ccache/core/sloppiness.hpp>
#include <ccache/util/assertions.hpp>
+#include <ccache/util/direntry.hpp>
#include <ccache/util/environment.hpp>
#include <ccache/util/expected.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/path.hpp>
#include <ccache/util/string.hpp>
+#include <ccache/util/tokenizer.hpp>
+#include <ccache/util/umaskscope.hpp>
#include <ccache/util/wincompat.hpp>
#ifdef HAVE_PWD_H
#pragma once
-#include <ccache/core/Sloppiness.hpp>
-#include <ccache/util/NonCopyable.hpp>
+#include <ccache/core/sloppiness.hpp>
+#include <ccache/util/noncopyable.hpp>
#include <ccache/util/string.hpp>
#include <sys/types.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "Context.hpp"
+#include "context.hpp"
-#include <ccache/SignalHandler.hpp>
#include <ccache/hashutil.hpp>
-#include <ccache/util/TimePoint.hpp>
+#include <ccache/signalhandler.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/logging.hpp>
#include <ccache/util/path.hpp>
#include <ccache/util/process.hpp>
#include <ccache/util/string.hpp>
+#include <ccache/util/timepoint.hpp>
#include <ccache/util/wincompat.hpp>
#ifdef HAVE_UNISTD_H
#pragma once
-#include <ccache/Args.hpp>
-#include <ccache/ArgsInfo.hpp>
-#include <ccache/Config.hpp>
-#include <ccache/Hash.hpp>
-#include <ccache/core/Manifest.hpp>
-#include <ccache/storage/Storage.hpp>
-#include <ccache/util/Bytes.hpp>
-#include <ccache/util/FileStream.hpp>
-#include <ccache/util/NonCopyable.hpp>
-#include <ccache/util/TimePoint.hpp>
+#include <ccache/args.hpp>
+#include <ccache/argsinfo.hpp>
+#include <ccache/config.hpp>
+#include <ccache/core/manifest.hpp>
+#include <ccache/hash.hpp>
+#include <ccache/storage/storage.hpp>
+#include <ccache/util/bytes.hpp>
+#include <ccache/util/filestream.hpp>
+#include <ccache/util/noncopyable.hpp>
+#include <ccache/util/timepoint.hpp>
#ifdef INODE_CACHE_SUPPORTED
-# include <ccache/InodeCache.hpp>
+# include <ccache/inodecache.hpp>
#endif
#include <sys/types.h>
set(
sources
- AtomicFile.cpp
- CacheEntry.cpp
- FileRecompressor.cpp
- Manifest.cpp
- MsvcShowIncludesOutput.cpp
- Result.cpp
- ResultExtractor.cpp
- ResultInspector.cpp
- ResultRetriever.cpp
- Statistics.cpp
- StatisticsCounters.cpp
- StatsLog.cpp
+ atomicfile.cpp
+ cacheentry.cpp
common.cpp
+ filerecompressor.cpp
mainoptions.cpp
+ manifest.cpp
+ msvcshowincludesoutput.cpp
+ result.cpp
+ resultextractor.cpp
+ resultinspector.cpp
+ resultretriever.cpp
+ statistics.cpp
+ statisticscounters.cpp
+ statslog.cpp
types.cpp
)
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "AtomicFile.hpp"
+#include "atomicfile.hpp"
#include <ccache/core/exceptions.hpp>
-#include <ccache/util/TemporaryFile.hpp>
#include <ccache/util/assertions.hpp>
#include <ccache/util/expected.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/format.hpp>
+#include <ccache/util/temporaryfile.hpp>
namespace fs = util::filesystem;
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "CacheEntry.hpp"
+#include "cacheentry.hpp"
#include <ccache/ccache.hpp>
-#include <ccache/core/CacheEntryDataReader.hpp>
-#include <ccache/core/CacheEntryDataWriter.hpp>
-#include <ccache/core/Result.hpp>
+#include <ccache/core/cacheentrydatareader.hpp>
+#include <ccache/core/cacheentrydatawriter.hpp>
#include <ccache/core/exceptions.hpp>
+#include <ccache/core/result.hpp>
#include <ccache/core/types.hpp>
-#include <ccache/util/TimePoint.hpp>
-#include <ccache/util/XXH3_128.hpp>
#include <ccache/util/expected.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/logging.hpp>
+#include <ccache/util/timepoint.hpp>
+#include <ccache/util/xxh3_128.hpp>
#include <ccache/util/zstd.hpp>
#include <cstring>
#pragma once
-#include <ccache/core/Serializer.hpp>
+#include <ccache/core/serializer.hpp>
#include <ccache/core/types.hpp>
-#include <ccache/util/Bytes.hpp>
+#include <ccache/util/bytes.hpp>
#include <nonstd/span.hpp>
#include "common.hpp"
-#include <ccache/Context.hpp>
+#include <ccache/context.hpp>
#include <ccache/core/exceptions.hpp>
-#include <ccache/util/Finalizer.hpp>
-#include <ccache/util/Tokenizer.hpp>
#include <ccache/util/expected.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
+#include <ccache/util/finalizer.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/path.hpp>
+#include <ccache/util/tokenizer.hpp>
using IncludeDelimiter = util::Tokenizer::IncludeDelimiter;
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "FileRecompressor.hpp"
+#include "filerecompressor.hpp"
-#include <ccache/core/AtomicFile.hpp>
-#include <ccache/core/CacheEntry.hpp>
+#include <ccache/core/atomicfile.hpp>
+#include <ccache/core/cacheentry.hpp>
#include <ccache/core/exceptions.hpp>
#include <ccache/util/expected.hpp>
#include <ccache/util/file.hpp>
#pragma once
-#include <ccache/util/DirEntry.hpp>
+#include <ccache/util/direntry.hpp>
#include <atomic>
#include <cstdint>
#include "mainoptions.hpp"
-#include <ccache/Config.hpp>
-#include <ccache/Hash.hpp>
-#include <ccache/InodeCache.hpp>
-#include <ccache/ProgressBar.hpp>
#include <ccache/ccache.hpp>
-#include <ccache/core/CacheEntry.hpp>
-#include <ccache/core/FileRecompressor.hpp>
-#include <ccache/core/Manifest.hpp>
-#include <ccache/core/Result.hpp>
-#include <ccache/core/ResultExtractor.hpp>
-#include <ccache/core/ResultInspector.hpp>
-#include <ccache/core/Statistics.hpp>
-#include <ccache/core/StatsLog.hpp>
+#include <ccache/config.hpp>
+#include <ccache/core/cacheentry.hpp>
#include <ccache/core/exceptions.hpp>
-#include <ccache/storage/Storage.hpp>
-#include <ccache/storage/local/LocalStorage.hpp>
-#include <ccache/util/Fd.hpp>
-#include <ccache/util/FileStream.hpp>
-#include <ccache/util/TemporaryFile.hpp>
-#include <ccache/util/TextTable.hpp>
-#include <ccache/util/ThreadPool.hpp>
-#include <ccache/util/UmaskScope.hpp>
-#include <ccache/util/XXH3_128.hpp>
+#include <ccache/core/filerecompressor.hpp>
+#include <ccache/core/manifest.hpp>
+#include <ccache/core/result.hpp>
+#include <ccache/core/resultextractor.hpp>
+#include <ccache/core/resultinspector.hpp>
+#include <ccache/core/statistics.hpp>
+#include <ccache/core/statslog.hpp>
+#include <ccache/hash.hpp>
+#include <ccache/inodecache.hpp>
+#include <ccache/progressbar.hpp>
+#include <ccache/storage/local/localstorage.hpp>
+#include <ccache/storage/storage.hpp>
#include <ccache/util/assertions.hpp>
#include <ccache/util/cpu.hpp>
#include <ccache/util/environment.hpp>
#include <ccache/util/expected.hpp>
+#include <ccache/util/fd.hpp>
#include <ccache/util/file.hpp>
+#include <ccache/util/filestream.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/logging.hpp>
#include <ccache/util/path.hpp>
#include <ccache/util/string.hpp>
+#include <ccache/util/temporaryfile.hpp>
+#include <ccache/util/texttable.hpp>
+#include <ccache/util/threadpool.hpp>
+#include <ccache/util/umaskscope.hpp>
+#include <ccache/util/xxh3_128.hpp>
#include <fcntl.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "Manifest.hpp"
+#include "manifest.hpp"
-#include <ccache/Context.hpp>
-#include <ccache/Hash.hpp>
-#include <ccache/core/CacheEntryDataReader.hpp>
-#include <ccache/core/CacheEntryDataWriter.hpp>
+#include <ccache/context.hpp>
+#include <ccache/core/cacheentrydatareader.hpp>
+#include <ccache/core/cacheentrydatawriter.hpp>
#include <ccache/core/exceptions.hpp>
+#include <ccache/hash.hpp>
#include <ccache/hashutil.hpp>
-#include <ccache/util/XXH3_64.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/logging.hpp>
#include <ccache/util/string.hpp>
+#include <ccache/util/xxh3_64.hpp>
// Manifest data format
// ====================
#pragma once
-#include <ccache/Hash.hpp>
-#include <ccache/core/Serializer.hpp>
-#include <ccache/util/Bytes.hpp>
-#include <ccache/util/TimePoint.hpp>
+#include <ccache/core/serializer.hpp>
+#include <ccache/hash.hpp>
+#include <ccache/util/bytes.hpp>
+#include <ccache/util/timepoint.hpp>
#include <nonstd/span.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "MsvcShowIncludesOutput.hpp"
+#include "msvcshowincludesoutput.hpp"
-#include <ccache/Context.hpp>
+#include <ccache/context.hpp>
#include <ccache/util/string.hpp>
namespace core::MsvcShowIncludesOutput {
#pragma once
-#include <ccache/util/Bytes.hpp>
+#include <ccache/util/bytes.hpp>
#include <string_view>
#include <vector>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "Result.hpp"
+#include "result.hpp"
-#include <ccache/Config.hpp>
-#include <ccache/Context.hpp>
#include <ccache/ccache.hpp>
-#include <ccache/core/CacheEntryDataReader.hpp>
-#include <ccache/core/CacheEntryDataWriter.hpp>
-#include <ccache/core/Statistic.hpp>
+#include <ccache/config.hpp>
+#include <ccache/context.hpp>
+#include <ccache/core/cacheentrydatareader.hpp>
+#include <ccache/core/cacheentrydatawriter.hpp>
#include <ccache/core/exceptions.hpp>
-#include <ccache/util/Bytes.hpp>
-#include <ccache/util/DirEntry.hpp>
-#include <ccache/util/FileStream.hpp>
+#include <ccache/core/statistic.hpp>
+#include <ccache/util/bytes.hpp>
+#include <ccache/util/direntry.hpp>
#include <ccache/util/expected.hpp>
#include <ccache/util/file.hpp>
+#include <ccache/util/filestream.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/logging.hpp>
#pragma once
-#include <ccache/core/Serializer.hpp>
-#include <ccache/util/Bytes.hpp>
+#include <ccache/core/serializer.hpp>
+#include <ccache/util/bytes.hpp>
#include <nonstd/span.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "ResultExtractor.hpp"
+#include "resultextractor.hpp"
#include <ccache/core/exceptions.hpp>
-#include <ccache/util/Bytes.hpp>
-#include <ccache/util/DirEntry.hpp>
+#include <ccache/util/bytes.hpp>
+#include <ccache/util/direntry.hpp>
#include <ccache/util/expected.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/format.hpp>
#pragma once
-#include <ccache/core/Result.hpp>
+#include <ccache/core/result.hpp>
#include <nonstd/span.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "ResultInspector.hpp"
+#include "resultinspector.hpp"
-#include <ccache/Context.hpp>
+#include <ccache/context.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/logging.hpp>
#pragma once
-#include <ccache/core/Result.hpp>
+#include <ccache/core/result.hpp>
#include <nonstd/span.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "ResultRetriever.hpp"
+#include "resultretriever.hpp"
-#include <ccache/Context.hpp>
-#include <ccache/Depfile.hpp>
-#include <ccache/core/MsvcShowIncludesOutput.hpp>
+#include <ccache/context.hpp>
#include <ccache/core/common.hpp>
#include <ccache/core/exceptions.hpp>
-#include <ccache/util/DirEntry.hpp>
-#include <ccache/util/Fd.hpp>
+#include <ccache/core/msvcshowincludesoutput.hpp>
+#include <ccache/depfile.hpp>
+#include <ccache/util/direntry.hpp>
#include <ccache/util/expected.hpp>
+#include <ccache/util/fd.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/format.hpp>
#pragma once
-#include <ccache/Hash.hpp>
-#include <ccache/core/Result.hpp>
#include <ccache/core/exceptions.hpp>
+#include <ccache/core/result.hpp>
+#include <ccache/hash.hpp>
#include <nonstd/span.hpp>
#pragma once
-#include <ccache/util/Bytes.hpp>
+#include <ccache/util/bytes.hpp>
#include <nonstd/span.hpp>
#pragma once
-#include <ccache/util/BitSet.hpp>
+#include <ccache/util/bitset.hpp>
#include <cstdint>
#include <string>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "Statistics.hpp"
+#include "statistics.hpp"
-#include <ccache/Config.hpp>
-#include <ccache/util/TextTable.hpp>
+#include <ccache/config.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/logging.hpp>
#include <ccache/util/path.hpp>
#include <ccache/util/string.hpp>
+#include <ccache/util/texttable.hpp>
#include <ccache/util/time.hpp>
#include <algorithm>
#pragma once
-#include <ccache/core/Statistic.hpp>
-#include <ccache/core/StatisticsCounters.hpp>
-#include <ccache/util/TimePoint.hpp>
+#include <ccache/core/statistic.hpp>
+#include <ccache/core/statisticscounters.hpp>
+#include <ccache/util/timepoint.hpp>
#include <cstdint>
#include <string>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "StatisticsCounters.hpp"
+#include "statisticscounters.hpp"
#include <ccache/util/assertions.hpp>
-// Copyright (C) 2010-2023 Joel Rosdahl and other contributors
+// Copyright (C) 2010-2024 Joel Rosdahl and other contributors
//
// See doc/AUTHORS.adoc for a complete list of contributors.
//
#pragma once
-#include "Statistic.hpp"
+#include <ccache/core/statistic.hpp>
#include <cstddef>
#include <cstdint>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "StatsLog.hpp"
+#include "statslog.hpp"
-#include <ccache/core/Statistics.hpp>
-#include <ccache/util/FileStream.hpp>
+#include <ccache/core/statistics.hpp>
+#include <ccache/util/filestream.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/logging.hpp>
#pragma once
-#include "StatisticsCounters.hpp"
+#include <ccache/core/statisticscounters.hpp>
#include <filesystem>
#include <string>
#include "types.hpp"
-#include <ccache/Config.hpp>
+#include <ccache/config.hpp>
#include <ccache/core/exceptions.hpp>
#include <ccache/util/assertions.hpp>
#include <ccache/util/format.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "Depfile.hpp"
+#include "depfile.hpp"
-#include <ccache/Context.hpp>
-#include <ccache/Hash.hpp>
+#include <ccache/context.hpp>
#include <ccache/core/common.hpp>
#include <ccache/core/exceptions.hpp>
-#include <ccache/util/Tokenizer.hpp>
+#include <ccache/hash.hpp>
#include <ccache/util/assertions.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/logging.hpp>
#include <ccache/util/path.hpp>
#include <ccache/util/string.hpp>
+#include <ccache/util/tokenizer.hpp>
#include <algorithm>
#include "execute.hpp"
-#include <ccache/Config.hpp>
-#include <ccache/Context.hpp>
-#include <ccache/SignalHandler.hpp>
#include <ccache/ccache.hpp>
+#include <ccache/config.hpp>
+#include <ccache/context.hpp>
#include <ccache/core/exceptions.hpp>
-#include <ccache/util/DirEntry.hpp>
-#include <ccache/util/Fd.hpp>
-#include <ccache/util/Finalizer.hpp>
-#include <ccache/util/TemporaryFile.hpp>
+#include <ccache/signalhandler.hpp>
+#include <ccache/util/direntry.hpp>
#include <ccache/util/error.hpp>
#include <ccache/util/expected.hpp>
+#include <ccache/util/fd.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
+#include <ccache/util/finalizer.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/logging.hpp>
#include <ccache/util/path.hpp>
#include <ccache/util/string.hpp>
+#include <ccache/util/temporaryfile.hpp>
#include <ccache/util/wincompat.hpp>
#include <vector>
#pragma once
-#include <ccache/util/Fd.hpp>
+#include <ccache/util/fd.hpp>
#include <filesystem>
#include <optional>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "Hash.hpp"
+#include "hash.hpp"
-#include <ccache/util/Fd.hpp>
+#include <ccache/util/fd.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/logging.hpp>
#include "hashutil.hpp"
-#include <ccache/Args.hpp>
-#include <ccache/Config.hpp>
-#include <ccache/Context.hpp>
+#include <ccache/args.hpp>
+#include <ccache/config.hpp>
+#include <ccache/context.hpp>
#include <ccache/core/exceptions.hpp>
#include <ccache/execute.hpp>
#include <ccache/macroskip.hpp>
-#include <ccache/util/DirEntry.hpp>
#include <ccache/util/cpu.hpp>
+#include <ccache/util/direntry.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/wincompat.hpp>
#ifdef INODE_CACHE_SUPPORTED
-# include "InodeCache.hpp"
+# include <ccache/inodecache.hpp>
#endif
#ifdef HAVE_SPAWN_H
#pragma once
-#include <ccache/Hash.hpp>
-#include <ccache/util/BitSet.hpp>
+#include <ccache/hash.hpp>
+#include <ccache/util/bitset.hpp>
#include <cstddef>
#include <filesystem>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "InodeCache.hpp"
-
-#include <ccache/Config.hpp>
-#include <ccache/Hash.hpp>
-#include <ccache/util/DirEntry.hpp>
-#include <ccache/util/Fd.hpp>
-#include <ccache/util/Finalizer.hpp>
-#include <ccache/util/TemporaryFile.hpp>
+#include "inodecache.hpp"
+
+#include <ccache/config.hpp>
+#include <ccache/hash.hpp>
#include <ccache/util/conversion.hpp>
+#include <ccache/util/direntry.hpp>
+#include <ccache/util/fd.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
+#include <ccache/util/finalizer.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/logging.hpp>
#include <ccache/util/path.hpp>
+#include <ccache/util/temporaryfile.hpp>
#include <fcntl.h>
#pragma once
-#include <ccache/Hash.hpp>
+#include <ccache/hash.hpp>
#include <ccache/hashutil.hpp>
-#include <ccache/util/Duration.hpp>
-#include <ccache/util/Fd.hpp>
-#include <ccache/util/MemoryMap.hpp>
-#include <ccache/util/TimePoint.hpp>
+#include <ccache/util/duration.hpp>
+#include <ccache/util/fd.hpp>
+#include <ccache/util/memorymap.hpp>
+#include <ccache/util/timepoint.hpp>
#include <sys/types.h>
#pragma once
-#include <ccache/Config.hpp>
+#include <ccache/config.hpp>
#include <filesystem>
#include <string>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "ProgressBar.hpp"
+#include "progressbar.hpp"
#include <ccache/util/assertions.hpp>
#include <ccache/util/format.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "SignalHandler.hpp"
+#include "signalhandler.hpp"
-#include <ccache/Context.hpp>
+#include <ccache/context.hpp>
#include <ccache/util/assertions.hpp>
#include <signal.h> // NOLINT: sigaddset et al are defined in signal.h
set(
sources
- Storage.cpp
+ storage.cpp
)
file(GLOB headers *.hpp)
set(
sources
- LocalStorage.cpp
- StatsFile.cpp
+ localstorage.cpp
+ statsfile.cpp
util.cpp
)
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "LocalStorage.hpp"
-
-#include <ccache/Config.hpp>
-#include <ccache/Context.hpp>
-#include <ccache/core/AtomicFile.hpp>
-#include <ccache/core/CacheEntry.hpp>
-#include <ccache/core/FileRecompressor.hpp>
-#include <ccache/core/Manifest.hpp>
-#include <ccache/core/Statistics.hpp>
+#include "localstorage.hpp"
+
+#include <ccache/config.hpp>
+#include <ccache/context.hpp>
+#include <ccache/core/atomicfile.hpp>
+#include <ccache/core/cacheentry.hpp>
#include <ccache/core/common.hpp>
#include <ccache/core/exceptions.hpp>
-#include <ccache/util/Duration.hpp>
-#include <ccache/util/FileStream.hpp>
-#include <ccache/util/PathString.hpp>
-#include <ccache/util/TemporaryFile.hpp>
-#include <ccache/util/TextTable.hpp>
-#include <ccache/util/ThreadPool.hpp>
+#include <ccache/core/filerecompressor.hpp>
+#include <ccache/core/manifest.hpp>
+#include <ccache/core/statistics.hpp>
#include <ccache/util/assertions.hpp>
+#include <ccache/util/duration.hpp>
#include <ccache/util/expected.hpp>
#include <ccache/util/file.hpp>
+#include <ccache/util/filestream.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/logging.hpp>
#include <ccache/util/path.hpp>
+#include <ccache/util/pathstring.hpp>
#include <ccache/util/process.hpp>
#include <ccache/util/string.hpp>
+#include <ccache/util/temporaryfile.hpp>
+#include <ccache/util/texttable.hpp>
+#include <ccache/util/threadpool.hpp>
#include <ccache/util/wincompat.hpp>
#ifdef INODE_CACHE_SUPPORTED
-# include <ccache/InodeCache.hpp>
+# include <ccache/inodecache.hpp>
#endif
#include <fcntl.h>
#pragma once
-#include <ccache/Hash.hpp>
-#include <ccache/core/Result.hpp>
-#include <ccache/core/Statistic.hpp>
-#include <ccache/core/StatisticsCounters.hpp>
+#include <ccache/core/result.hpp>
+#include <ccache/core/statistic.hpp>
+#include <ccache/core/statisticscounters.hpp>
#include <ccache/core/types.hpp>
-#include <ccache/storage/local/StatsFile.hpp>
+#include <ccache/hash.hpp>
+#include <ccache/storage/local/statsfile.hpp>
#include <ccache/storage/local/util.hpp>
-#include <ccache/util/Bytes.hpp>
-#include <ccache/util/DirEntry.hpp>
-#include <ccache/util/LockFile.hpp>
-#include <ccache/util/LongLivedLockFileManager.hpp>
-#include <ccache/util/TimePoint.hpp>
+#include <ccache/util/bytes.hpp>
+#include <ccache/util/direntry.hpp>
+#include <ccache/util/lockfile.hpp>
+#include <ccache/util/longlivedlockfilemanager.hpp>
+#include <ccache/util/timepoint.hpp>
#include <nonstd/span.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "StatsFile.hpp"
+#include "statsfile.hpp"
-#include <ccache/core/AtomicFile.hpp>
+#include <ccache/core/atomicfile.hpp>
#include <ccache/core/exceptions.hpp>
-#include <ccache/util/LockFile.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/format.hpp>
+#include <ccache/util/lockfile.hpp>
#include <ccache/util/logging.hpp>
namespace storage::local {
#pragma once
-#include <ccache/core/StatisticsCounters.hpp>
+#include <ccache/core/statisticscounters.hpp>
#include <functional>
#include <optional>
#pragma once
-#include <ccache/util/DirEntry.hpp>
+#include <ccache/util/direntry.hpp>
#include <functional>
#include <string>
set(
sources
- FileStorage.cpp
- HttpStorage.cpp
- RemoteStorage.cpp
+ filestorage.cpp
+ httpstorage.cpp
+ remotestorage.cpp
)
if(REDIS_STORAGE_BACKEND)
- list(APPEND sources RedisStorage.cpp)
+ list(APPEND sources redisstorage.cpp)
endif()
file(GLOB headers *.hpp)
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "FileStorage.hpp"
+#include "filestorage.hpp"
-#include <ccache/core/AtomicFile.hpp>
+#include <ccache/core/atomicfile.hpp>
#include <ccache/core/exceptions.hpp>
-#include <ccache/util/Bytes.hpp>
-#include <ccache/util/DirEntry.hpp>
-#include <ccache/util/UmaskScope.hpp>
#include <ccache/util/assertions.hpp>
+#include <ccache/util/bytes.hpp>
+#include <ccache/util/direntry.hpp>
#include <ccache/util/expected.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/logging.hpp>
#include <ccache/util/string.hpp>
+#include <ccache/util/umaskscope.hpp>
#include <sys/stat.h> // for mode_t
#pragma once
-#include <ccache/storage/remote/RemoteStorage.hpp>
+#include <ccache/storage/remote/remotestorage.hpp>
#include <cxxurl/url.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "HttpStorage.hpp"
+#include "httpstorage.hpp"
-#include <ccache/Hash.hpp>
#include <ccache/ccache.hpp>
#include <ccache/core/exceptions.hpp>
-#include <ccache/storage/Storage.hpp>
+#include <ccache/hash.hpp>
+#include <ccache/storage/storage.hpp>
#include <ccache/util/assertions.hpp>
#include <ccache/util/expected.hpp>
#include <ccache/util/format.hpp>
#pragma once
-#include <ccache/storage/remote/RemoteStorage.hpp>
+#include <ccache/storage/remote/remotestorage.hpp>
#include <cxxurl/url.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "RedisStorage.hpp"
+#include "redisstorage.hpp"
-#include <ccache/Hash.hpp>
#include <ccache/core/exceptions.hpp>
-#include <ccache/storage/Storage.hpp>
+#include <ccache/hash.hpp>
+#include <ccache/storage/storage.hpp>
#include <ccache/util/assertions.hpp>
#include <ccache/util/expected.hpp>
#include <ccache/util/format.hpp>
#pragma once
-#include <ccache/storage/remote/RemoteStorage.hpp>
+#include <ccache/storage/remote/remotestorage.hpp>
#include <cxxurl/url.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "RemoteStorage.hpp"
+#include "remotestorage.hpp"
#include <ccache/util/expected.hpp>
#include <ccache/util/string.hpp>
#pragma once
-#include <ccache/Hash.hpp>
-#include <ccache/util/Bytes.hpp>
+#include <ccache/hash.hpp>
+#include <ccache/util/bytes.hpp>
#include <cxxurl/url.hpp>
#include <nonstd/span.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "Storage.hpp"
+#include "storage.hpp"
-#include <ccache/Config.hpp>
-#include <ccache/core/CacheEntry.hpp>
-#include <ccache/core/Statistic.hpp>
+#include <ccache/config.hpp>
+#include <ccache/core/cacheentry.hpp>
#include <ccache/core/exceptions.hpp>
-#include <ccache/storage/remote/FileStorage.hpp>
-#include <ccache/storage/remote/HttpStorage.hpp>
+#include <ccache/core/statistic.hpp>
+#include <ccache/storage/remote/filestorage.hpp>
+#include <ccache/storage/remote/httpstorage.hpp>
#ifdef HAVE_REDIS_STORAGE_BACKEND
-# include <ccache/storage/remote/RedisStorage.hpp>
+# include <ccache/storage/remote/redisstorage.hpp>
#endif
-#include <ccache/util/Bytes.hpp>
-#include <ccache/util/Timer.hpp>
-#include <ccache/util/Tokenizer.hpp>
-#include <ccache/util/XXH3_64.hpp>
#include <ccache/util/assertions.hpp>
+#include <ccache/util/bytes.hpp>
#include <ccache/util/expected.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/logging.hpp>
#include <ccache/util/string.hpp>
+#include <ccache/util/timer.hpp>
+#include <ccache/util/tokenizer.hpp>
+#include <ccache/util/xxh3_64.hpp>
#include <cxxurl/url.hpp>
#pragma once
-#include <ccache/Hash.hpp>
#include <ccache/core/types.hpp>
-#include <ccache/storage/local/LocalStorage.hpp>
-#include <ccache/storage/remote/RemoteStorage.hpp>
-#include <ccache/util/Bytes.hpp>
+#include <ccache/hash.hpp>
+#include <ccache/storage/local/localstorage.hpp>
+#include <ccache/storage/remote/remotestorage.hpp>
+#include <ccache/util/bytes.hpp>
#include <nonstd/span.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include <ccache/Config.hpp>
-#include <ccache/util/LockFile.hpp>
-#include <ccache/util/LongLivedLockFileManager.hpp>
+#include <ccache/config.hpp>
#include <ccache/util/format.hpp>
+#include <ccache/util/lockfile.hpp>
#include <ccache/util/logging.hpp>
+#include <ccache/util/longlivedlockfilemanager.hpp>
#include <ccache/util/string.hpp>
#include <memory>
set(
sources
- Bytes.cpp
- DirEntry.cpp
- LockFile.cpp
- LongLivedLockFileManager.cpp
- MemoryMap.cpp
- TemporaryFile.cpp
- TextTable.cpp
- ThreadPool.cpp
- TimePoint.cpp
- Tokenizer.cpp
- UmaskScope.cpp
assertions.cpp
+ bytes.cpp
cpu.cpp
+ direntry.cpp
environment.cpp
error.cpp
file.cpp
filesystem.cpp
+ lockfile.cpp
logging.cpp
+ longlivedlockfilemanager.cpp
+ memorymap.cpp
path.cpp
process.cpp
string.cpp
+ temporaryfile.cpp
+ texttable.cpp
+ threadpool.cpp
time.cpp
+ timepoint.cpp
+ tokenizer.cpp
+ umaskscope.cpp
zstd.cpp
)
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "Bytes.hpp"
+#include "bytes.hpp"
#include <ccache/util/assertions.hpp>
#pragma once
-#include <ccache/util/Bytes.hpp>
+#include <ccache/util/bytes.hpp>
#include <nonstd/span.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "DirEntry.hpp"
+#include "direntry.hpp"
-#include <ccache/util/Finalizer.hpp>
-#include <ccache/util/PathString.hpp>
#include <ccache/util/file.hpp>
+#include <ccache/util/finalizer.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/logging.hpp>
+#include <ccache/util/pathstring.hpp>
#include <ccache/util/wincompat.hpp>
#ifdef _WIN32
#pragma once
-#include <ccache/util/TimePoint.hpp>
+#include <ccache/util/timepoint.hpp>
#include <ccache/util/wincompat.hpp>
#include <sys/stat.h>
#pragma once
-#include <ccache/util/NonCopyable.hpp>
#include <ccache/util/assertions.hpp>
+#include <ccache/util/noncopyable.hpp>
#include <ccache/util/wincompat.hpp>
#ifdef HAVE_UNISTD_H
#include "file.hpp"
-#include <ccache/util/Bytes.hpp>
-#include <ccache/util/DirEntry.hpp>
-#include <ccache/util/Fd.hpp>
-#include <ccache/util/Finalizer.hpp>
-#include <ccache/util/PathString.hpp>
-#include <ccache/util/TemporaryFile.hpp>
+#include <ccache/util/bytes.hpp>
+#include <ccache/util/direntry.hpp>
#include <ccache/util/error.hpp>
#include <ccache/util/expected.hpp>
+#include <ccache/util/fd.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
+#include <ccache/util/finalizer.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/logging.hpp>
#include <ccache/util/path.hpp>
+#include <ccache/util/pathstring.hpp>
+#include <ccache/util/temporaryfile.hpp>
#ifdef __APPLE__
# include <copyfile.h>
#pragma once
-#include <ccache/util/Bytes.hpp>
-#include <ccache/util/DirEntry.hpp>
-#include <ccache/util/TimePoint.hpp>
+#include <ccache/util/bytes.hpp>
+#include <ccache/util/direntry.hpp>
+#include <ccache/util/timepoint.hpp>
#include <ccache/util/types.hpp>
#include <nonstd/span.hpp>
#pragma once
-#include <ccache/util/NonCopyable.hpp>
+#include <ccache/util/noncopyable.hpp>
#include <ccache/util/path.hpp>
#include <cstdio>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "LockFile.hpp"
+#include "lockfile.hpp"
-#include <ccache/util/DirEntry.hpp>
#include <ccache/util/assertions.hpp>
+#include <ccache/util/direntry.hpp>
#include <ccache/util/error.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
#pragma once
-#include <ccache/util/LongLivedLockFileManager.hpp>
-#include <ccache/util/NonCopyable.hpp>
-#include <ccache/util/TimePoint.hpp>
+#include <ccache/util/longlivedlockfilemanager.hpp>
+#include <ccache/util/noncopyable.hpp>
+#include <ccache/util/timepoint.hpp>
#include <filesystem>
#include <optional>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include <ccache/Config.hpp>
-#include <ccache/util/FileStream.hpp>
+#include <ccache/config.hpp>
#include <ccache/util/file.hpp>
+#include <ccache/util/filestream.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/logging.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "LongLivedLockFileManager.hpp"
+#include "longlivedlockfilemanager.hpp"
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
#pragma once
-#include <ccache/util/NonCopyable.hpp>
+#include <ccache/util/noncopyable.hpp>
#include <condition_variable>
#include <filesystem>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "MemoryMap.hpp"
+#include "memorymap.hpp"
#include <ccache/util/format.hpp>
#include <ccache/util/wincompat.hpp>
#pragma once
-#include <ccache/util/NonCopyable.hpp>
+#include <ccache/util/noncopyable.hpp>
#include <tl/expected.hpp>
#include "path.hpp"
-#include <ccache/util/DirEntry.hpp>
+#include <ccache/util/direntry.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/string.hpp>
#pragma once
-#include <ccache/util/PathString.hpp>
+#include <ccache/util/pathstring.hpp>
#include <filesystem>
#include <string>
#pragma once
-#include <ccache/util/Tokenizer.hpp>
#include <ccache/util/conversion.hpp>
+#include <ccache/util/tokenizer.hpp>
#include <nonstd/span.hpp>
#include <tl/expected.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TemporaryFile.hpp"
+#include "temporaryfile.hpp"
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
#pragma once
-#include <ccache/util/Fd.hpp>
+#include <ccache/util/fd.hpp>
#include <tl/expected.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TextTable.hpp"
+#include "texttable.hpp"
#include <ccache/util/assertions.hpp>
#include <ccache/util/format.hpp>
-// Copyright (C) 2019-2023 Joel Rosdahl and other contributors
+// Copyright (C) 2019-2024 Joel Rosdahl and other contributors
//
// See doc/AUTHORS.adoc for a complete list of contributors.
//
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "ThreadPool.hpp"
+#include "threadpool.hpp"
namespace util {
#pragma once
-#include <ccache/util/TimePoint.hpp>
+#include <ccache/util/timepoint.hpp>
#include <ctime>
#include <optional>
-// Copyright (C) 2022 Joel Rosdahl and other contributors
+// Copyright (C) 2022-2024 Joel Rosdahl and other contributors
//
// See doc/AUTHORS.adoc for a complete list of contributors.
//
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TimePoint.hpp"
+#include "timepoint.hpp"
#include <chrono>
#pragma once
-#include <ccache/util/Duration.hpp>
+#include <ccache/util/duration.hpp>
#include <cstdint>
#include <ctime>
-// Copyright (C) 2021-2022 Joel Rosdahl and other contributors
+// Copyright (C) 2021-2024 Joel Rosdahl and other contributors
//
// See doc/AUTHORS.adoc for a complete list of contributors.
//
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "Tokenizer.hpp"
+#include "tokenizer.hpp"
namespace util {
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "UmaskScope.hpp"
+#include "umaskscope.hpp"
#include <ccache/util/process.hpp>
#pragma once
-#include <ccache/util/Bytes.hpp>
+#include <ccache/util/bytes.hpp>
#include <ccache/util/conversion.hpp>
#include <nonstd/span.hpp>
#pragma once
-#include <ccache/util/Bytes.hpp>
+#include <ccache/util/bytes.hpp>
#include <nonstd/span.hpp>
#include <tl/expected.hpp>
set(
source_files
- TestUtil.cpp
main.cpp
- test_Args.cpp
- test_Config.cpp
- test_Depfile.cpp
- test_Hash.cpp
test_argprocessing.cpp
+ test_args.cpp
test_ccache.cpp
test_compopt.cpp
test_compression_types.cpp
- test_core_AtomicFile.cpp
- test_core_MsvcShowIncludesOutput.cpp
- test_core_Statistics.cpp
- test_core_StatisticsCounters.cpp
- test_core_StatsLog.cpp
+ test_config.cpp
+ test_core_atomicfile.cpp
test_core_common.cpp
+ test_core_msvcshowincludesoutput.cpp
+ test_core_statistics.cpp
+ test_core_statisticscounters.cpp
+ test_core_statslog.cpp
+ test_depfile.cpp
+ test_hash.cpp
test_hashutil.cpp
- test_storage_local_StatsFile.cpp
+ test_storage_local_statsfile.cpp
test_storage_local_util.cpp
- test_util_BitSet.cpp
- test_util_Bytes.cpp
- test_util_DirEntry.cpp
- test_util_Duration.cpp
- test_util_LockFile.cpp
- test_util_TextTable.cpp
- test_util_TimePoint.cpp
- test_util_Tokenizer.cpp
- test_util_XXH3_128.cpp
- test_util_XXH3_64.cpp
+ test_util_bitset.cpp
+ test_util_bytes.cpp
test_util_conversion.cpp
+ test_util_direntry.cpp
+ test_util_duration.cpp
test_util_environment.cpp
test_util_expected.cpp
test_util_file.cpp
+ test_util_lockfile.cpp
test_util_path.cpp
test_util_string.cpp
+ test_util_texttable.cpp
+ test_util_timepoint.cpp
+ test_util_tokenizer.cpp
+ test_util_xxh3_128.cpp
+ test_util_xxh3_64.cpp
test_util_zstd.cpp
+ testutil.cpp
)
if(INODE_CACHE_SUPPORTED)
- list(APPEND source_files test_InodeCache.cpp)
+ list(APPEND source_files test_inodecache.cpp)
endif()
if(WIN32)
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
-#include <ccache/Args.hpp>
-#include <ccache/Config.hpp>
-#include <ccache/Context.hpp>
#include <ccache/argprocessing.hpp>
-#include <ccache/core/Statistic.hpp>
+#include <ccache/args.hpp>
+#include <ccache/config.hpp>
+#include <ccache/context.hpp>
+#include <ccache/core/statistic.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/format.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
-#include <ccache/Args.hpp>
+#include <ccache/args.hpp>
#include <ccache/util/file.hpp>
#include <doctest/doctest.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
-#include <ccache/util/Fd.hpp>
-#include <ccache/util/Finalizer.hpp>
+#include <ccache/util/fd.hpp>
+#include <ccache/util/finalizer.hpp>
#include <ccache/util/wincompat.hpp>
#include <doctest/doctest.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
-#include <ccache/Context.hpp>
#include <ccache/ccache.hpp>
+#include <ccache/context.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/format.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include <ccache/Config.hpp>
+#include <ccache/config.hpp>
#include <ccache/core/types.hpp>
#include <doctest/doctest.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
-#include <ccache/Config.hpp>
+#include <ccache/config.hpp>
#include <ccache/core/exceptions.hpp>
#include <ccache/util/environment.hpp>
#include <ccache/util/file.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
-#include <ccache/core/AtomicFile.hpp>
-#include <ccache/util/DirEntry.hpp>
+#include <ccache/core/atomicfile.hpp>
+#include <ccache/util/direntry.hpp>
#include <ccache/util/file.hpp>
#include <doctest/doctest.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
#include <ccache/core/common.hpp>
#include <ccache/core/exceptions.hpp>
-#include <ccache/util/DirEntry.hpp>
+#include <ccache/util/direntry.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/format.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
-#include <ccache/Context.hpp>
-#include <ccache/core/MsvcShowIncludesOutput.hpp>
+#include <ccache/context.hpp>
+#include <ccache/core/msvcshowincludesoutput.hpp>
#include <ccache/util/string.hpp>
#include <doctest/doctest.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
-#include <ccache/core/Statistic.hpp>
-#include <ccache/core/Statistics.hpp>
+#include <ccache/core/statistic.hpp>
+#include <ccache/core/statistics.hpp>
#include <doctest/doctest.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
-#include <ccache/core/Statistic.hpp>
-#include <ccache/core/StatisticsCounters.hpp>
+#include <ccache/core/statistic.hpp>
+#include <ccache/core/statisticscounters.hpp>
#include <doctest/doctest.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
-#include <ccache/core/StatsLog.hpp>
+#include <ccache/core/statslog.hpp>
#include <ccache/util/file.hpp>
#include <doctest/doctest.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
-#include <ccache/Context.hpp>
-#include <ccache/Depfile.hpp>
+#include <ccache/context.hpp>
+#include <ccache/depfile.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/format.hpp>
#include <ccache/util/path.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include <ccache/Hash.hpp>
+#include <ccache/hash.hpp>
#include <ccache/util/string.hpp>
#include <doctest/doctest.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
-#include <ccache/Hash.hpp>
+#include <ccache/hash.hpp>
#include <ccache/hashutil.hpp>
#include <ccache/util/file.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
-
-#include <ccache/Config.hpp>
-#include <ccache/Context.hpp>
-#include <ccache/Hash.hpp>
-#include <ccache/InodeCache.hpp>
-#include <ccache/util/Fd.hpp>
-#include <ccache/util/TemporaryFile.hpp>
+#include "testutil.hpp"
+
+#include <ccache/config.hpp>
+#include <ccache/context.hpp>
+#include <ccache/hash.hpp>
+#include <ccache/inodecache.hpp>
+#include <ccache/util/fd.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/path.hpp>
+#include <ccache/util/temporaryfile.hpp>
#include <doctest/doctest.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
-#include <ccache/core/Statistic.hpp>
-#include <ccache/storage/local/StatsFile.hpp>
+#include <ccache/core/statistic.hpp>
+#include <ccache/storage/local/statsfile.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/format.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
#include <ccache/storage/local/util.hpp>
#include <ccache/util/file.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
-#include <ccache/util/BitSet.hpp>
+#include <ccache/util/bitset.hpp>
#include <doctest/doctest.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include <ccache/util/Bytes.hpp>
+#include <ccache/util/bytes.hpp>
#include <doctest/doctest.h>
#include <nonstd/span.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
-#include <ccache/util/DirEntry.hpp>
-#include <ccache/util/Fd.hpp>
-#include <ccache/util/Finalizer.hpp>
+#include <ccache/util/direntry.hpp>
#include <ccache/util/environment.hpp>
+#include <ccache/util/fd.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
+#include <ccache/util/finalizer.hpp>
#include <ccache/util/wincompat.hpp>
#include <doctest/doctest.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include <ccache/util/Duration.hpp>
+#include <ccache/util/duration.hpp>
#include <doctest/doctest.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
-#include <ccache/util/Bytes.hpp>
-#include <ccache/util/DirEntry.hpp>
-#include <ccache/util/Fd.hpp>
+#include <ccache/util/bytes.hpp>
+#include <ccache/util/direntry.hpp>
+#include <ccache/util/fd.hpp>
#include <ccache/util/file.hpp>
#include <ccache/util/filesystem.hpp>
#include <ccache/util/format.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
-#include <ccache/util/DirEntry.hpp>
-#include <ccache/util/LockFile.hpp>
+#include <ccache/util/direntry.hpp>
#include <ccache/util/file.hpp>
+#include <ccache/util/lockfile.hpp>
#include <ccache/util/wincompat.hpp>
#include <doctest/doctest.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
#include <ccache/util/environment.hpp>
#include <ccache/util/filesystem.hpp>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include <ccache/util/TextTable.hpp>
+#include <ccache/util/texttable.hpp>
#include <doctest/doctest.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include <ccache/util/TimePoint.hpp>
+#include <ccache/util/timepoint.hpp>
#include <doctest/doctest.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include <ccache/util/XXH3_128.hpp>
#include <ccache/util/string.hpp>
+#include <ccache/util/xxh3_128.hpp>
#include <doctest/doctest.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include <ccache/util/XXH3_64.hpp>
+#include <ccache/util/xxh3_64.hpp>
#include <doctest/doctest.h>
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
-#include <ccache/util/Bytes.hpp>
+#include <ccache/util/bytes.hpp>
#include <ccache/util/zstd.hpp>
#include <doctest/doctest.h>
-// Copyright (C) 2020-2023 Joel Rosdahl and other contributors
+// Copyright (C) 2020-2024 Joel Rosdahl and other contributors
//
// See doc/AUTHORS.adoc for a complete list of contributors.
//
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include "TestUtil.hpp"
+#include "testutil.hpp"
#include <ccache/core/exceptions.hpp>
#include <ccache/util/expected.hpp>