Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
Fix non member unions are not generated in the output
Browse files Browse the repository at this point in the history
  • Loading branch information
matusnovak committed Dec 2, 2020
1 parent ea5a2f3 commit f2bb42e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/Doxybook/Doxygen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,17 @@
throw DOXYGEN_EXCEPTION("Element {} not found in parent {} file {}", NAME, PARENT->Name(), inputDir);

static bool isKindAllowedLanguage(const std::string& kind) {
static std::set<std::string> values = {
"namespace", "class", "struct", "interface", "function", "variable", "typedef", "enum", "slot", "signal"};
static std::set<std::string> values = {"namespace",
"class",
"struct",
"interface",
"function",
"variable",
"typedef",
"enum",
"slot",
"signal",
"union"};
return values.find(kind) != values.end();
}

Expand Down

0 comments on commit f2bb42e

Please # to comment.