diff options
author | Topi Reinio <topi.reinio@qt.io> | 2017-04-20 14:51:59 +0200 |
---|---|---|
committer | Topi Reiniƶ <topi.reinio@qt.io> | 2017-04-25 08:13:28 +0000 |
commit | a693686709352dee9441f2f2633606e7327e321b (patch) | |
tree | fa24f3aee62c75787c9f8339db571218112b43b7 | |
parent | cf291537ab218cd93c87675f693abed473065468 (diff) | |
download | qttools-a693686709352dee9441f2f2633606e7327e321b.tar.gz |
qdoc: Stop warning about undocumented parameters of function overloads
There are cases where the parameters of an overloaded function
differ enough to have everything documented, but also cases where
most of them are already documented in the original, or differ
only by type. Therefore, leave it up to the writer to decide what
needs to be documented.
Change-Id: Ibe8f520f7f22bf94c74eb91546e610e085f3d635
Reviewed-by: Martin Smith <martin.smith@qt.io>
-rw-r--r-- | src/qdoc/generator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qdoc/generator.cpp b/src/qdoc/generator.cpp index 7f5a5834b..eaf1a6133 100644 --- a/src/qdoc/generator.cpp +++ b/src/qdoc/generator.cpp @@ -937,7 +937,7 @@ void Generator::generateBody(const Node *node, CodeMarker *marker) } } } - if (needWarning && !func->isReimplemented()) + if (needWarning && !func->isReimplemented() && !func->isOverload()) node->doc().location().warning( tr("Undocumented parameter '%1' in %2") .arg(*a).arg(node->plainFullName())); |