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

Method DumpGlobDependent

Source/cmFileAPICMakeFiles.cxx:128–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128Json::Value CMakeFiles::DumpGlobDependent(cmGlobCacheEntry const& entry)
129{
130 Json::Value globDependent = Json::objectValue;
131 globDependent["expression"] = entry.Expression;
132 if (entry.Recurse) {
133 globDependent["recurse"] = true;
134 }
135 if (entry.ListDirectories) {
136 globDependent["listDirectories"] = true;
137 }
138 if (entry.FollowSymlinks) {
139 globDependent["followSymlinks"] = true;
140 }
141 if (!entry.Relative.empty()) {
142 globDependent["relative"] = entry.Relative;
143 }
144 Json::Value paths = Json::arrayValue;
145 for (std::string const& file : entry.Files) {
146 paths.append(file);
147 }
148 globDependent["paths"] = std::move(paths);
149 return globDependent;
150}
151}
152
153Json::Value cmFileAPICMakeFilesDump(cmFileAPI& fileAPI, unsigned int version)

Callers 1

DumpGlobsDependentMethod · 0.95

Calls 3

moveFunction · 0.85
appendMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected