summaryrefslogtreecommitdiffstats
path: root/tests/auto/qdoc/generatedoutput/testcpp.h
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2020-01-02 10:42:33 +0100
committerTopi Reiniƶ <topi.reinio@qt.io>2020-01-05 11:01:04 +0000
commitd4064dd83eca3df5c766d1c456fa060233a1288d (patch)
tree4419bc5015d99e099e4bf308191ff07c8a7cd7d1 /tests/auto/qdoc/generatedoutput/testcpp.h
parent4dcc7a3d10a223ddd111eaaac6665609add7c46f (diff)
qdoc: Fix regression in C++ functions sharing a documentation comment
After a recent refactoring, the function that distributes c++ documentation nodes failed to do anything with a function node that was sharing a comment with other nodes. Fix the issue and add a testcase for shared c++ \fn documentation comments. Fixes: QTBUG-81005 Change-Id: I6320bab232671f8cd969a37136708fc172de8409 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'tests/auto/qdoc/generatedoutput/testcpp.h')
-rw-r--r--tests/auto/qdoc/generatedoutput/testcpp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qdoc/generatedoutput/testcpp.h b/tests/auto/qdoc/generatedoutput/testcpp.h
index 733f9e751..c34ada99b 100644
--- a/tests/auto/qdoc/generatedoutput/testcpp.h
+++ b/tests/auto/qdoc/generatedoutput/testcpp.h
@@ -40,6 +40,10 @@ public:
void deprecatedMember();
inline void inlineFunction() {};
virtual void virtualFun();
+
+protected:
+ void overload() {}
+ void overload(bool b) { if (!b) return; }
};
class TestDerived : public Test {