From 2fb4134589a95856673f29e695839b4be3b5ae6a Mon Sep 17 00:00:00 2001 From: alandefreitas Date: Tue, 14 Jan 2025 17:16:33 -0300 Subject: [PATCH] XMLWriter excludes dependencies #fix --- src/lib/Gen/xml/XMLWriter.cpp | 7 ++++ .../filters/symbol-name/blacklist_0.xml | 11 ------ .../symbol-name/excluded-namespace-alias.xml | 4 -- .../filters/symbol-name/extraction-mode.xml | 37 ------------------- 4 files changed, 7 insertions(+), 52 deletions(-) diff --git a/src/lib/Gen/xml/XMLWriter.cpp b/src/lib/Gen/xml/XMLWriter.cpp index 5b99a34ea..fe0671228 100644 --- a/src/lib/Gen/xml/XMLWriter.cpp +++ b/src/lib/Gen/xml/XMLWriter.cpp @@ -195,6 +195,13 @@ XMLWriter:: operator()( T const& I) { + Info const& base = I; + if (base.Extraction == ExtractionMode::Dependency) + { + return; + } + + #define INFO(Type) if constexpr(T::is##Type()) write##Type(I); #include } diff --git a/test-files/golden-tests/filters/symbol-name/blacklist_0.xml b/test-files/golden-tests/filters/symbol-name/blacklist_0.xml index 956874f3e..481d66825 100644 --- a/test-files/golden-tests/filters/symbol-name/blacklist_0.xml +++ b/test-files/golden-tests/filters/symbol-name/blacklist_0.xml @@ -7,17 +7,6 @@ - - - - - - - - - - - diff --git a/test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.xml b/test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.xml index e88559cfe..b78ad6eec 100644 --- a/test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.xml +++ b/test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.xml @@ -3,10 +3,6 @@ xsi:noNamespaceSchemaLocation="https://github.com/cppalliance/mrdocs/raw/develop/mrdocs.rnc"> - - - - diff --git a/test-files/golden-tests/filters/symbol-name/extraction-mode.xml b/test-files/golden-tests/filters/symbol-name/extraction-mode.xml index a85814e5f..9ee08a19a 100644 --- a/test-files/golden-tests/filters/symbol-name/extraction-mode.xml +++ b/test-files/golden-tests/filters/symbol-name/extraction-mode.xml @@ -107,18 +107,6 @@ - - - - - An excluded symbol used as a dependency by a regular symbol - - - A symbol excluded by filters but is used as a dependency The symbol should be extracted as a dependency but its - members should not be traversed. - - - @@ -200,21 +188,6 @@ - - - - - A dependency symbol in a see-below namespace - - - The symbol should be extracted as a dependency because the exclude filter has precedence over the see-below filter. - Only included symbols can be promoted to see-below. - - - This will not have a page and functions using this symbol should explain the dependency. - - - @@ -265,8 +238,6 @@ - - @@ -375,14 +346,6 @@ - - - - - A dependency symbol in the global namespace - - -