GCC Code Coverage Report


Directory: ../
File: src/global/CacheManager.h
Date: 2025-10-27 22:48:14
Coverage Exec Excl Total
Lines: 100.0% 1 0 1
Functions: 100.0% 1 0 1
Branches: -% 0 0 0

Line Branch Exec Source
1 // Copyright (c) 2021-2025 ChilliBits. All rights reserved.
2
3 #pragma once
4
5 #include <filesystem>
6
7 namespace spice::compiler {
8
9 // Forward declarations
10 class SourceFile;
11
12 class CacheManager {
13 public:
14 // Constructors
15 420 explicit CacheManager(const std::filesystem::path &cacheDir) : cacheDir(cacheDir) {}
16 CacheManager(const CacheManager &) = delete;
17
18 // Public methods
19 bool lookupSourceFile(const SourceFile *sourceFile) const;
20 void cacheSourceFile(const SourceFile *sourceFile);
21
22 private:
23 // Private members
24 const std::filesystem::path &cacheDir;
25 };
26
27 } // namespace spice::compiler
28