clang 22.0.0git
InProcessModuleCache.h
Go to the documentation of this file.
1/===----------------------------------------------------------------------===/
2/
3/ Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4/ See https://llvm.org/LICENSE.txt for license information.
5/ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6/
7/===----------------------------------------------------------------------===/
8
9#ifndef LLVM_CLANG_DEPENDENCYSCANNING_INPROCESSMODULECACHE_H
10#define LLVM_CLANG_DEPENDENCYSCANNING_INPROCESSMODULECACHE_H
11
13#include "llvm/ADT/StringMap.h"
14
15#include <mutex>
16#include <shared_mutex>
17
18namespace clang {
19namespace dependencies {
20
22 std::shared_mutex CompilationMutex;
23 std::atomic<std::time_t> Timestamp = 0;
24};
25
27 std::mutex Mutex;
28 llvm::StringMap<std::unique_ptr<ModuleCacheEntry>> Map;
29};
30
33
34} / namespace dependencies
35} / namespace clang
36
37#endif / LLVM_CLANG_DEPENDENCYSCANNING_INPROCESSMODULECACHE_H
IntrusiveRefCntPtr< ModuleCache > makeInProcessModuleCache(ModuleCacheEntries &Entries)
The JSON file list parser is used to communicate input to InstallAPI.
llvm::StringMap< std::unique_ptr< ModuleCacheEntry > > Map

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant