QDoc: Document functions declared with C linkage
QDoc skips declarations inside linkage specifications when parsing
headers. Visit these declarations so the existing declaration
handlers can process them.
An output fixture for a function declared with extern "C" verifies
the behavior.
[ChangeLog][QDoc] QDoc now generates documentation for functions
declared with extern "C".
Change-Id: I5e473aa7bf408f88b0a72a8858304d95e23c1dd2
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
| commit | 3a82116d94569a1e6c06cedbcc13bcfa2ae94747 |
| parent | 30146f5629ff8ff583fb117a75e79c0604e64f9d |
| author | Volodymyr Samokhatko <volodymyr.samokhatko@gmail.com> |
| committer | Volodymyr Samokhatko <volodymyr.samokhatko@gmail.com> |
| commit time | Thu, 24 Sep 2026 12:27:18 +0000 |
- M src/qdoc/qdoc/src/qdoc/clangcodeparser.cpp
- A src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/extern_c/a.h
- A src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/extern_c/expected/a-h.html
- A src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/extern_c/expected/externc.index
- A src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/extern_c/extern_c.qdocconf