12using namespace Qt::StringLiterals;
17 m_collective.reserve(count);
21
22
23
24
25
26
30 const auto &overloadArgs =
doc().overloadList();
31 bool isPrimaryOverload = !overloadArgs.isEmpty()
32 && overloadArgs.first().first ==
"__qdoc_primary_overload__"_L1;
34 size_t functionIndex = 0;
35 for (
auto *node : m_collective) {
36 if (node->isFunction()) {
37 auto *fn =
static_cast<FunctionNode *>(node);
40 if (isPrimaryOverload && functionIndex == 0)
41 fn->setPrimaryOverloadFlag();
43 fn->setOverloadFlag();
50
51
52
53
54
65
66
67
71 for (
auto *node : m_collective)
72 node->setRelatedNonmember(value);
void addChild(Node *child)
Adds the child to this node's child list and sets the child's parent pointer to this Aggregate.
Combined button and popup list for selecting options.
The Node class is the base class for all the nodes in QDoc's parse tree.
const Doc & doc() const
Returns a reference to the node's Doc data member.
virtual void setRelatedNonmember(bool b)
Sets a flag in the node indicating whether this node is a related nonmember of something.
void setParent(Aggregate *n)
Sets the node's parent pointer to n.