MCPcopy Create free account
hub / github.com/alibaba/MNN / CPPMakeRule

Function CPPMakeRule

3rd_party/flatbuffers/src/idl_gen_cpp.cpp:2751–2761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2749}
2750
2751std::string CPPMakeRule(const Parser &parser, const std::string &path,
2752 const std::string &file_name) {
2753 const auto filebase =
2754 flatbuffers::StripPath(flatbuffers::StripExtension(file_name));
2755 const auto included_files = parser.GetIncludedFilesRecursive(file_name);
2756 std::string make_rule = GeneratedFileName(path, filebase) + ": ";
2757 for (auto it = included_files.begin(); it != included_files.end(); ++it) {
2758 make_rule += " " + *it;
2759 }
2760 return make_rule;
2761}
2762
2763} // namespace flatbuffers

Callers

nothing calls this directly

Calls 6

StripPathFunction · 0.85
StripExtensionFunction · 0.85
GeneratedFileNameFunction · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected