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

Method HandleFileSetMode

Source/cmTargetSourcesCommand.cxx:194–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194bool TargetSourcesImpl::HandleFileSetMode(
195 std::string const& scope, std::vector<std::string> const& content)
196{
197 auto args = FileSetsArgsParser.Parse(content, /*unparsedArguments=*/nullptr);
198
199 for (auto& argList : args.FileSets) {
200 argList.emplace(argList.begin(), "FILE_SET"_s);
201 if (!this->HandleOneFileSet(scope, argList)) {
202 return false;
203 }
204 }
205
206 return true;
207}
208
209bool TargetSourcesImpl::HandleOneFileSet(
210 std::string const& scope, std::vector<std::string> const& content)

Callers 1

Calls 4

HandleOneFileSetMethod · 0.95
emplaceMethod · 0.80
ParseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected