| 11 | } |
| 12 | |
| 13 | const std::set<std::string> APIJsonLoader::load() { |
| 14 | std::set<std::string> APINames; |
| 15 | Json::Value PublicAPIJson = |
| 16 | util::parseJsonFileToJsonValue(this->JsonFilePath.c_str()); |
| 17 | |
| 18 | assert(PublicAPIJson && "Invalid Json"); |
| 19 | |
| 20 | for (std::string &LibName : PublicAPIJson.getMemberNames()) { |
| 21 | if (isDeprecatedLibrary(LibName)) { |
| 22 | continue; |
| 23 | } |
| 24 | |
| 25 | for (Json::Value &FuncName : PublicAPIJson[LibName]) { |
| 26 | APINames.insert(FuncName.asString()); |
| 27 | } |
| 28 | } |
| 29 | return APINames; |
| 30 | }; |
| 31 | |
| 32 | } // namespace ftg |
nothing calls this directly
no test coverage detected