MCPcopy Create free account
hub / github.com/Kitware/CMake / cmListFileFunction

Class cmListFileFunction

Source/cmListFileCache.h:54–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52};
53
54class cmListFileFunction
55{
56public:
57 cmListFileFunction(std::string name, long line, long lineEnd,
58 std::vector<cmListFileArgument> args)
59 : Impl{ std::make_shared<Implementation>(std::move(name), line, lineEnd,
60 std::move(args)) }
61 {
62 }
63
64 std::string const& OriginalName() const noexcept
65 {
66 return this->Impl->OriginalName;
67 }
68
69 std::string const& LowerCaseName() const noexcept
70 {
71 return this->Impl->LowerCaseName;
72 }
73
74 long Line() const noexcept { return this->Impl->Line; }
75 long LineEnd() const noexcept { return this->Impl->LineEnd; }
76
77 std::vector<cmListFileArgument> const& Arguments() const noexcept
78 {
79 return this->Impl->Arguments;
80 }
81
82private:
83 struct Implementation
84 {
85 Implementation(std::string name, long line, long lineEnd,
86 std::vector<cmListFileArgument> args)
87 : OriginalName{ std::move(name) }
88 , LowerCaseName{ cmSystemTools::LowerCase(this->OriginalName) }
89 , Line{ line }
90 , LineEnd{ lineEnd }
91 , Arguments{ std::move(args) }
92 {
93 }
94
95 std::string OriginalName;
96 std::string LowerCaseName;
97 long Line = 0;
98 long LineEnd = 0;
99 std::vector<cmListFileArgument> Arguments;
100 };
101
102 std::shared_ptr<Implementation const> Impl;
103};
104
105class cmListFileContext
106{

Callers 1

ProcessStepsMethod · 0.70

Calls

no outgoing calls

Tested by 1

ProcessStepsMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…