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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#pragma once
#include "cmConfigure.h" // IWYU pragma: keep
#include <memory>
#include <set>
#include <string>
#include <utility>
#include <vector>
#include "cmAlgorithms.h"
#include "cmPolicies.h"
class cmFileSet;
class cmGlobalGenerator;
class cmMakefile;
class cmTarget;
class cmTest;
namespace cmDebugger {
class cmDebuggerStackFrame;
class cmDebuggerVariables;
class cmDebuggerVariablesManager;
}
template <typename T>
class BT;
namespace cmDebugger {
class cmDebuggerVariablesHelper
{
cmDebuggerVariablesHelper() = default;
public:
static std::shared_ptr<cmDebuggerVariables> Create(
std::shared_ptr<cmDebuggerVariablesManager> const& variablesManager,
std::string const& name, bool supportsVariableType,
cmPolicies::PolicyMap const& policyMap);
static std::shared_ptr<cmDebuggerVariables> CreateIfAny(
std::shared_ptr<cmDebuggerVariablesManager> const& variablesManager,
std::string const& name, bool supportsVariableType,
std::vector<std::pair<std::string, std::string>> const& list);
static std::shared_ptr<cmDebuggerVariables> CreateIfAny(
std::shared_ptr<cmDebuggerVariablesManager> const& variablesManager,
std::string const& name, bool supportsVariableType,
cmBTStringRange const& entries);
static std::shared_ptr<cmDebuggerVariables> CreateIfAny(
std::shared_ptr<cmDebuggerVariablesManager> const& variablesManager,
std::string const& name, bool supportsVariableType,
std::set<std::string> const& values);
static std::shared_ptr<cmDebuggerVariables> CreateIfAny(
std::shared_ptr<cmDebuggerVariablesManager> const& variablesManager,
std::string const& name, bool supportsVariableType,
std::vector<std::string> const& values);
static std::shared_ptr<cmDebuggerVariables> CreateIfAny(
std::shared_ptr<cmDebuggerVariablesManager> const& variablesManager,
std::string const& name, bool supportsVariableType,
std::vector<BT<std::string>> const& list);
static std::shared_ptr<cmDebuggerVariables> CreateIfAny(
std::shared_ptr<cmDebuggerVariablesManager> const& variablesManager,
std::string const& name, bool supportsVariableType, cmFileSet* fileSet);
static std::shared_ptr<cmDebuggerVariables> CreateIfAny(
std::shared_ptr<cmDebuggerVariablesManager> const& variablesManager,
std::string const& name, bool supportsVariableType,
std::vector<cmFileSet*> const& fileSets);
static std::shared_ptr<cmDebuggerVariables> CreateIfAny(
std::shared_ptr<cmDebuggerVariablesManager> const& variablesManager,
std::string const& name, bool supportsVariableType, cmTest* test);
static std::shared_ptr<cmDebuggerVariables> CreateIfAny(
std::shared_ptr<cmDebuggerVariablesManager> const& variablesManager,
std::string const& name, bool supportsVariableType,
std::vector<cmTest*> const& tests);
static std::shared_ptr<cmDebuggerVariables> CreateIfAny(
std::shared_ptr<cmDebuggerVariablesManager> const& variablesManager,
std::string const& name, bool supportsVariableType,
std::vector<cmTarget*> const& targets);
static std::shared_ptr<cmDebuggerVariables> Create(
std::shared_ptr<cmDebuggerVariablesManager> const& variablesManager,
std::string const& name, bool supportsVariableType,
std::shared_ptr<cmDebuggerStackFrame> const& frame);
static std::shared_ptr<cmDebuggerVariables> CreateIfAny(
std::shared_ptr<cmDebuggerVariablesManager> const& variablesManager,
std::string const& name, bool supportsVariableType, cmMakefile* mf);
static std::shared_ptr<cmDebuggerVariables> CreateIfAny(
std::shared_ptr<cmDebuggerVariablesManager> const& variablesManager,
std::string const& name, bool supportsVariableType,
cmGlobalGenerator* gen);
};
} // namespace cmDebugger
|