QDoc: Introduce InternalAuto Node status
Adds a new Status::InternalAuto value to distinguish nodes that are
automatically determined to be internal from those explicitly marked
\internal (Status::Internal) by the author.
This distinction is required in order to be able to warn if a Node
is missing documentation. Previously, QDoc indiscriminately assigned
Status::Internal to all undocumented nodes.
Introduce the new status into the inclusion policy, ready to be
used for policy decisions. Index file output uses a new
"internal-auto" status string for these nodes.
Remove QmlTypeNode::isInternal() override as unnecessary. QML types
are always parented to the root namespace whose internal status is
known, and the base implementation in Node::isInternal() works as
expected on a QmlTypeNode.
[ChangeLog][QDoc] Introduced a new InternalAuto status for entities
that are automatically determined to be internal. In .index files,
this is visible as status="internal-auto" attribute.
Task-number: QTBUG-144299
Change-Id: I95aba2da8bbeaf4e9264f47fbe40229a928a09d7
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
| commit | 50aab7badc83f541c2a3553cad6e1be0a3bb1f83 |
| parent | edeec8f645bc23221bea1b85be67e1ab3360ff6a |
| author | Topi Reinio <topi.reinio@qt.io> |
| committer | Topi Reinio <topi.reinio@qt.io> |
| commit time | Wed, 6 May 2026 12:16:21 +0000 |
- M src/qdoc/qdoc/src/qdoc/aggregate.cpp
- M src/qdoc/qdoc/src/qdoc/docbookgenerator.cpp
- M src/qdoc/qdoc/src/qdoc/generator.cpp
- M src/qdoc/qdoc/src/qdoc/inclusionfilter.h
- M src/qdoc/qdoc/src/qdoc/inclusionflags.h
- M src/qdoc/qdoc/src/qdoc/inclusionpolicy.h
- M src/qdoc/qdoc/src/qdoc/inclusionstrategy.qdoc
- M src/qdoc/qdoc/src/qdoc/ir/classificationjson.h
- M src/qdoc/qdoc/src/qdoc/node.cpp
- M src/qdoc/qdoc/src/qdoc/node.h
- M src/qdoc/qdoc/src/qdoc/nodecontext.h
- M src/qdoc/qdoc/src/qdoc/qdocindexfiles.cpp
- M src/qdoc/qdoc/src/qdoc/qmltypenode.h
- M src/qdoc/qdoc/src/qdoc/status.h
- M src/qdoc/qdoc/tests/generatedoutput/expected_output/testcpp.index
- M src/qdoc/qdoc/tests/qdoc/inclusion/catch_inclusionstrategytests.cpp
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/bug80259/expected/html/testmodule.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/code_languages/expected/html/codelanguages.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/html/test.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/html/test.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/customsortedlists/expected/html/customsortedlists.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/cxx20/expected/html/cxx20.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/headerfile/expected/html/headerfile.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/illformatted_documentation/expected/html/illformatteddocumentation.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/internalfilepatterns/expected/html/internalfilepatterns.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/noexcept_notes/expected/html/noexceptnotes.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/noshowinternal/expected/html/noshowinternal.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/overload_command/expected/overload-command-test.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/privateheaders/expected/html/privateheaders.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/privateheaders/expected/webxml/publicclass-privatedata-unnamed-struct.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/privateheaders/expected/webxml/publicclass-privatedata-unnamed-union-unnamed-struct.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/privateheaders/expected/webxml/publicclass-privatedata-unnamed-union.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/privateheaders/expected/webxml/publicclass-privatedata.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/privateheaders/expected/webxml/publicclass.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/qml_nativetype_synopsis/expected/html/qml-nativetype-synopsis-test.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/scopedenum/expected/html/testcpp.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/tableaftervalue/expected/html/tableaftervalue.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/templatedcallables/expected/html/templatedcallables.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/templatedcallables_headerdocs/expected/html/templatedcallables.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/testtemplate/expected/html/testtemplate.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/tocnavigation/expected/html/outputfromqdocfiles.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/trailing_backslashes/expected/html/trailingbackslashes.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/usingdirective/expected/html/usingdirective.index
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/qtlottie.index