Skip to content

Commit

Permalink
add with-anonymous config option
Browse files Browse the repository at this point in the history
  • Loading branch information
sdkrystian committed May 31, 2023
1 parent 5ea02aa commit 6e7bea1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/mrdox/Config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ class MRDOX_VISIBLE
*/
bool includePrivate = false;

/** `true` if anonymous namespace members should be extracted and displayed.
In some cases anonymous namespace members will
be listed even if this configuration value is set to
`false`. For example, this may occur for a class derived
from one declared within an anonymous namespace.
*/
bool includeAnonymous = true;

//--------------------------------------------

/** A string holding the complete configuration YAML.
Expand Down
1 change: 1 addition & 0 deletions source/ConfigImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ struct llvm::yaml::MappingTraits<
io.mapOptional("single-page", cfg.singlePage);
io.mapOptional("verbose", cfg.verboseOutput);
io.mapOptional("with-private", cfg.includePrivate);
io.mapOptional("with-anonymous", cfg.includeAnonymous);

io.mapOptional("concurrency", cfg.concurrency_);
io.mapOptional("defines", cfg.additionalDefines_);
Expand Down

0 comments on commit 6e7bea1

Please sign in to comment.