From dcdd35ce2a0cda024525298a9a20d6c746539e6d Mon Sep 17 00:00:00 2001 From: albert-github Date: Tue, 6 Jan 2015 10:45:23 +0100 Subject: Fortran: warning message about not documented module member When having a not documented MODULE member it is mentioned that a member in a 'namespace' is not documented. For Fortran this is a bit strange as Fortran does not know the term namespace, modules are handled as namespaces (in the pre 1.8.9 version a message was given about 'class', which is equally confusing). This patch changes in this case 'namespace' to 'module'. --- src/memberdef.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/memberdef.cpp b/src/memberdef.cpp index 9198960..4d7afef 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -3203,7 +3203,13 @@ void MemberDef::warnIfUndocumented() if (cd) t="class", d=cd; else if (nd) - t="namespace", d=nd; + { + d=nd; + if (d->getLanguage() == SrcLangExt_Fortran) + t="module"; + else + t="namespace"; + } else if (gd) t="group", d=gd; else -- cgit v0.12