Skip to content

Commit

Permalink
Fortran: warning message about not documented module member
Browse files Browse the repository at this point in the history
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'.
  • Loading branch information
albert-github committed Jan 6, 2015
1 parent d49604f commit dcdd35c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/memberdef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dcdd35c

Please sign in to comment.