chiark / gitweb /
doxygen: propagate keywords from inside sections as well.
authorVladimír Vondruš <mosra@centrum.cz>
Sun, 11 Feb 2018 17:38:45 +0000 (18:38 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Sun, 11 Feb 2018 17:38:45 +0000 (18:38 +0100)
doxygen/dox2html5.py
doxygen/test/search/Dir/File.h

index 00fb40c0ebd554e3c1075bb99bd5c5aeb43a64ae..b00dfc86deceb68f6ba90b83412d8b068d306f99 100755 (executable)
@@ -630,6 +630,8 @@ def parse_desc_internal(state: State, element: ET.Element, immediate_parent: ET.
             parsed = parse_desc_internal(state, i)
             assert parsed.section
             assert not parsed.templates and not parsed.params and not parsed.return_value
+            if parsed.search_keywords:
+                out.search_keywords += parsed.search_keywords
 
             # Top-level section has no ID or title
             if not out.section: out.section = ('', '', [])
index 97b5fd5980a760ed0d5328529dd273228f8ff5bb..a06317565cf48552a17894df4d51b7af5d57550b 100644 (file)
 namespace Namespace {
 
 /**
- * @brief A class
- *
- * @note Keywords inside a note should be propagated outside:
- *      @m_keywords{glClass()}
+@brief A class
+
+@section section2 A section, stuff inside should be propagated outside
+
+@note Keywords inside a note should be propagated outside:
+     @m_keywords{glClass()}
  */
 class Class {
     public: