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_TOOLING_DEPENDENCYSCANNING_INPROCESSMODULECACHE_H
10#define LLVM_CLANG_TOOLING_DEPENDENCYSCANNING_INPROCESSMODULECACHE_H
11
13#include "llvm/ADT/StringMap.h"
14
15#include <mutex>
16#include <shared_mutex>
17
18namespace clang {
19namespace tooling {
20namespace dependencies {
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} // namespace dependencies
34} // namespace tooling
35} // namespace clang
36
37#endif
IntrusiveRefCntPtr< ModuleCache > makeInProcessModuleCache(ModuleCacheEntries &Entries)
The JSON file list parser is used to communicate input to InstallAPI.
llvm::StringMap< std::unique_ptr< ModuleCacheEntry > > Map