Skip to content

Commit 6e7bea1

Browse files
committed
add with-anonymous config option
1 parent 5ea02aa commit 6e7bea1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

include/mrdox/Config.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ class MRDOX_VISIBLE
101101
*/
102102
bool includePrivate = false;
103103

104+
/** `true` if anonymous namespace members should be extracted and displayed.
105+
106+
In some cases anonymous namespace members will
107+
be listed even if this configuration value is set to
108+
`false`. For example, this may occur for a class derived
109+
from one declared within an anonymous namespace.
110+
*/
111+
bool includeAnonymous = true;
112+
104113
//--------------------------------------------
105114

106115
/** A string holding the complete configuration YAML.

source/ConfigImpl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ struct llvm::yaml::MappingTraits<
4848
io.mapOptional("single-page", cfg.singlePage);
4949
io.mapOptional("verbose", cfg.verboseOutput);
5050
io.mapOptional("with-private", cfg.includePrivate);
51+
io.mapOptional("with-anonymous", cfg.includeAnonymous);
5152

5253
io.mapOptional("concurrency", cfg.concurrency_);
5354
io.mapOptional("defines", cfg.additionalDefines_);

0 commit comments

Comments
 (0)