diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-12-06 18:20:45 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-12-06 18:20:45 (GMT) |
commit | 6813ee0d373629968dc3ff9235285819e45f5707 (patch) | |
tree | db6a4cf330b3c7b7dc387321cabe709ba675e957 /src/memberdef.cpp | |
parent | 4a50fc78170244f82c376bbecd28be43cc849da3 (diff) | |
download | Doxygen-6813ee0d373629968dc3ff9235285819e45f5707.zip Doxygen-6813ee0d373629968dc3ff9235285819e45f5707.tar.gz Doxygen-6813ee0d373629968dc3ff9235285819e45f5707.tar.bz2 |
Doxygen-1.3.9.1-20041206
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r-- | src/memberdef.cpp | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp index a2bb3d9..9c2ed72 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -423,6 +423,8 @@ MemberDef::MemberDef(const char *df,int dl, m_inbodyLine = -1; m_implOnly=FALSE; groupMember = 0; + m_hasDocumentedParams = FALSE; + m_hasDocumentedReturnType = FALSE; } /*! Destroys the member definition. */ @@ -1584,13 +1586,10 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol, ol.startDescTableData(); ol.parseDoc(docFile(),docLine(), getOuterScope()?getOuterScope():container, - this, + this, // memberDef a->docs+"\n", // docStr TRUE, // indexWords - FALSE, // isExample - 0, // exampleName - FALSE, // singleLine - TRUE // isParam + FALSE // isExample ); ol.endDescTableData(); } @@ -1838,6 +1837,24 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol, //if (Config_getBool("EXTRACT_ALL") && !hasDocs) ol.enable(OutputGenerator::Latex); ol.popGeneratorState(); + if (!Config_getBool("EXTRACT_ALL") && + Config_getBool("WARN_IF_UNDOCUMENTED") && + Config_getBool("WARN_NO_PARAMDOC")) + { + if (!hasDocumentedParams()) + { + warn_doc_error(docFile(),docLine(), + "Warning: parameters of member %s are not (all) documented", + qualifiedName().data()); + } + if (!hasDocumentedReturnType()) + { + warn_doc_error(docFile(),docLine(), + "Warning: return type of member %s is not documented", + qualifiedName().data()); + } + } + } void MemberDef::warnIfUndocumented() |