summaryrefslogtreecommitdiffstats
path: root/src/memberdef.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2015-03-21 16:52:12 (GMT)
committeralbert-github <albert.tests@gmail.com>2015-03-21 16:52:12 (GMT)
commitda3faf6b93fd3eb4e751d2c0cbd4ed9ceae7922b (patch)
treed13b60df55b5facf0d1431a222f42256e7f3d49c /src/memberdef.cpp
parenta952249824a68abe249e81042c5c946d4cb74b6f (diff)
downloadDoxygen-da3faf6b93fd3eb4e751d2c0cbd4ed9ceae7922b.zip
Doxygen-da3faf6b93fd3eb4e751d2c0cbd4ed9ceae7922b.tar.gz
Doxygen-da3faf6b93fd3eb4e751d2c0cbd4ed9ceae7922b.tar.bz2
Warnings without filename
In a number of instances we don't get the filename of where the error occurs but a name or even unknown between <> e.g. <fie_p2>:1: warning: parameters of member fie_p2 are not (all) documented <error>:1: warning: parameters of member p1.error are not (all) documented <unknown>:1: warning: Member fie_p3 (function) of class p3::int1_p3 is not documented. This patch tries to overcome this problem by providing the right file: .../p2.h:8: warning: parameters of member fie_p2 are not (all) documented .../p1.py:7: warning: parameters of member p1.error are not (all) documented .../p3.f90:3: warning: Member fie_p3 (function) of class p3::int1_p3 is not documented.
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r--src/memberdef.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp
index f27a579..4331181 100644
--- a/src/memberdef.cpp
+++ b/src/memberdef.cpp
@@ -2991,13 +2991,13 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol,
{
if (!hasDocumentedParams())
{
- warn_doc_error(docFile(),docLine(),
+ warn_doc_error(getDefFileName(),getDefLine(),
"parameters of member %s are not (all) documented",
qPrint(qualifiedName()));
}
if (!hasDocumentedReturnType() && isFunction() && hasDocumentation())
{
- warn_doc_error(docFile(),docLine(),
+ warn_doc_error(getDefFileName(),getDefLine(),
"return type of member %s is not documented",
qPrint(qualifiedName()));
}
@@ -3230,7 +3230,7 @@ void MemberDef::warnIfUndocumented()
!isReference()
)
{
- warn_undoc(getDefFileName(),getDefLine(),"Member %s%s (%s) of %s %s is not documented.",
+ warn_undoc(d->getDefFileName(),d->getDefLine(),"Member %s%s (%s) of %s %s is not documented.",
qPrint(name()),qPrint(argsString()),qPrint(memberTypeName()),t,qPrint(d->name()));
}
}