12
13
14
15
16
17
18
21
22
23
26
27
28
29
30
31
32
35 return m_whereDocumented == tree()->camelCaseModuleName();
39
40
41
42
45 for (
const auto *node : std::as_const(m_children)) {
46 if (node->isInAPI()) {
47 QString msg1 = node->name();
48 if (node->isFunction())
50 msg1 += QStringLiteral(
51 " is documented, but namespace %1 is not documented in any module.")
55 "Add /*! '\\%1 %2' ... */ or remove the qdoc comment marker (!) at "
59 node->doc().location().warning(msg1, msg2);
65
66
67
68
74 return std::any_of(m_children.cbegin(), m_children.cend(),
79
80
81
82
83
84
85
86
87
90 return m_includedChildren;
94
95
96
97
100 m_includedChildren.append(child);
104
105
106
107
110
111
114
115
118
119
120
121
122
125
126
127
130
131
132
135
136
139
140
141
142
145
146
147
148
149
150
151
152
153
154
157
158
159
162
163
164
167
168
169
170
171
174
175
176
177
178
179
180
181
This class represents a C++ namespace.
void includeChild(Node *child)
This function is only called from QDocDatabase::resolveNamespaces().
bool docMustBeGenerated() const override
Returns true if QDoc must generate documentation for this namespace node; that is,...
void reportDocumentedChildrenInUndocumentedNamespace() const
Report qdoc warning for each documented child in a namespace that is not documented.
bool isDocumentedHere() const
Returns true if this namespace is to be documented in the current module.
const NodeList & includedChildren() const
Returns a const reference to the namespace node's list of included children, which contains pointers ...
#define COMMAND_NAMESPACE
Combined button and popup list for selecting options.
The Node class is the base class for all the nodes in QDoc's parse tree.
virtual bool isInAPI() const
Returns true if this node is considered to be part of the API as per the InclusionPolicy retrieved fr...