GCC Code Coverage Report


Directory: ../
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 1 / 0 / 1
Functions: 100.0% 1 / 0 / 1
Branches: -% 0 / 0 / 0

src/global/CacheManager.h
Line Branch Exec Source
1 // Copyright (c) 2021-2026 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 443 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