-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathTargetDomains.h
32 lines (24 loc) · 1.08 KB
/
TargetDomains.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include "swift/extractor/trap/TrapDomain.h"
#include "swift/extractor/trap/LinkDomain.h"
#include "swift/extractor/trap/ObjectDomain.h"
#include "swift/extractor/config/SwiftExtractorState.h"
namespace codeql {
enum class TrapType {
source,
module,
invocation,
linkage,
lazy_declaration,
};
std::filesystem::path getTrapPath(const SwiftExtractorState& state,
const std::filesystem::path& target,
TrapType type);
std::optional<TrapDomain> createTargetTrapDomain(SwiftExtractorState& state,
const std::filesystem::path& target,
TrapType type);
std::optional<LinkDomain> createTargetLinkDomain(const SwiftExtractorState& state,
const std::filesystem::path& target);
std::optional<ObjectDomain> createTargetObjectDomain(const SwiftExtractorState& state,
const std::filesystem::path& target);
} // namespace codeql