@@ -63,7 +63,7 @@ bool IgnoreForRecurse(pugi::xml_node const& node) {
6363void CompoundRecurse (YAML::Emitter& yaml, YamlContext const & ctx,
6464 pugi::xml_node const & node) {
6565 for (auto const & child : node) {
66- if (!IncludeInPublicDocuments (child)) continue ;
66+ if (!IncludeInPublicDocuments (ctx. config , child)) continue ;
6767 if (IgnoreForRecurse (child)) continue ;
6868 if (AppendIfSectionDef (yaml, ctx, child)) continue ;
6969 if (AppendIfNamespace (yaml, ctx, child)) continue ;
@@ -108,14 +108,15 @@ std::string Summary(pugi::xml_node const& node) {
108108
109109} // namespace
110110
111- std::vector<TocEntry> CompoundToc (pugi::xml_document const & doc) {
111+ std::vector<TocEntry> CompoundToc (Config const & cfg,
112+ pugi::xml_document const & doc) {
112113 std::vector<TocEntry> result;
113114 // Insert only namespaces in the TOC. Other entities (functions, typedefs,
114115 // classes, structs) are always part of a namespace and will appear in the
115116 // references from them.
116117 for (auto const & i : doc.select_nodes (" //compounddef[@kind='namespace']" )) {
117118 auto const & node = i.node ();
118- if (!IncludeInPublicDocuments (node)) continue ;
119+ if (!IncludeInPublicDocuments (cfg, node)) continue ;
119120 auto const id = std::string{node.attribute (" id" ).as_string ()};
120121 auto const name =
121122 std::string_view{node.child (" compoundname" ).child_value ()};
@@ -126,10 +127,11 @@ std::vector<TocEntry> CompoundToc(pugi::xml_document const& doc) {
126127 return result;
127128}
128129
129- std::string Compound2Yaml (pugi::xml_node const & node) {
130+ std::string Compound2Yaml (Config const & cfg, pugi::xml_node const & node) {
130131 YAML::Emitter yaml;
131132 StartDocFxYaml (yaml);
132133 YamlContext ctx;
134+ ctx.config = cfg;
133135 (void )AppendIfEnum (yaml, ctx, node);
134136 (void )AppendIfTypedef (yaml, ctx, node);
135137 (void )AppendIfFriend (yaml, ctx, node);
0 commit comments