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

Method cmCompiledGeneratorExpression

Source/cmGeneratorExpression.cxx:120–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120cmCompiledGeneratorExpression::cmCompiledGeneratorExpression(
121 cmake& cmakeInstance, cmListFileBacktrace backtrace, std::string input)
122 : Backtrace(std::move(backtrace))
123 , Input(std::move(input))
124{
125#ifndef CMAKE_BOOTSTRAP
126 auto profilingRAII =
127 cmakeInstance.CreateProfilingEntry("genex_compile", this->Input);
128#endif
129
130 cmGeneratorExpressionLexer l;
131 std::vector<cmGeneratorExpressionToken> tokens = l.Tokenize(this->Input);
132 this->NeedsEvaluation = l.GetSawGeneratorExpression();
133
134 if (this->NeedsEvaluation) {
135 cmGeneratorExpressionParser p(tokens);
136 p.Parse(this->Evaluators);
137 }
138}
139
140std::string cmGeneratorExpression::StripEmptyListElements(
141 std::string const& input)

Callers

nothing calls this directly

Calls 5

moveFunction · 0.85
CreateProfilingEntryMethod · 0.80
TokenizeMethod · 0.80
ParseMethod · 0.45

Tested by

no test coverage detected