summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-03-29 21:04:50 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-03-29 21:04:50 (GMT)
commitc5a9fd9035cfdd64b47139b54730be4acd5daf0f (patch)
treec93d921fb0bbb29eb0274366706be43e2b0cfd2f
parent77ba85cf74d85ebf68c69d7d42e33839902e2f97 (diff)
parentbde0f936b60bfbce8e73ac87c6e10d15914d58fd (diff)
downloadDoxygen-c5a9fd9035cfdd64b47139b54730be4acd5daf0f.zip
Doxygen-c5a9fd9035cfdd64b47139b54730be4acd5daf0f.tar.gz
Doxygen-c5a9fd9035cfdd64b47139b54730be4acd5daf0f.tar.bz2
Merge branch 'master' of github.com:doxygen/doxygen
-rw-r--r--addon/doxyparse/doxyparse.cpp23
-rw-r--r--doc/commands.doc3
2 files changed, 19 insertions, 7 deletions
diff --git a/addon/doxyparse/doxyparse.cpp b/addon/doxyparse/doxyparse.cpp
index 24769e0..d0b43d5 100644
--- a/addon/doxyparse/doxyparse.cpp
+++ b/addon/doxyparse/doxyparse.cpp
@@ -236,6 +236,21 @@ static void referenceTo(MemberDef* md) {
printReferenceTo(type, signature, defined_in);
}
+void protectionInformation(Protection protection) {
+ if (protection == Public) {
+ printProtection("public");
+ }
+ else if (protection == Protected) {
+ printProtection("protected");
+ }
+ else if (protection == Private) {
+ printProtection("private");
+ }
+ else if (protection == Package) {
+ printProtection("package");
+ }
+}
+
void cModule(ClassDef* cd) {
MemberList* ml = cd->getMemberList(MemberListType_variableMembers);
if (ml) {
@@ -249,9 +264,7 @@ void cModule(ClassDef* cd) {
MemberDef* md;
for (mli.toFirst(); (md=mli.current()); ++mli) {
printDefinition("variable", cd->name().data() + std::string("::") + md->name().data(), md->getDefLine());
- if (md->protection() == Public) {
- printProtection("public");
- }
+ protectionInformation(md->protection());
}
}
}
@@ -311,9 +324,7 @@ static void lookupSymbol(Definition *d) {
std::string type = md->memberTypeName().data();
std::string signature = functionSignature(md);
printDefinition(type, signature, md->getDefLine());
- if (md->protection() == Public) {
- printProtection("public");
- }
+ protectionInformation(md->protection());
if (md->isFunction() && md->isPrototype()) {
prototypeInformation(md);
}
diff --git a/doc/commands.doc b/doc/commands.doc
index be526a0..350b5fe 100644
--- a/doc/commands.doc
+++ b/doc/commands.doc
@@ -605,7 +605,8 @@ Structural indicators
\par Important:
The documentation of global functions, variables, typedefs, and enums will
- only be included in the output if the file they are in is documented as well.
+ only be included in the output if the file they are in is documented as well
+ or if \ref cfg_javadoc_autobrief "EXTRACT_ALL" is set to \c YES.
\par Example:
\include file.h