QDoc
Learn how Vale handles QDoc content.
QDoc is Qt's documentation markup: LaTeX-style commands inside /*! ... */ comment blocks. Support is built in—nothing to install.
The supported extension is .qdoc. Doc comments in C++ and QML sources lint through a format association:
[formats]
cpp = qdoc
qml = qdoc
[*.{qdoc,cpp,qml}]
BasedOnStyles = ValeAlerts are mapped back to their positions in the source file. Only block comments (/*! ... */) are treated as documentation—// line comments are code.
By default, Vale ignores:
Code blocks:
\code,\badcode,\qml, and friends, through their\endcommands.Omitted text:
\omit ... \endomit.Topic and context commands:
\fn,\class,\page,\module,\since, and the rest of their family—the whole line is markup.Quoting commands:
\snippet,\quotefile,\printline, and so on.Links' targets:
\l {target} {text}keeps its text and drops its target;\salines say nothing.Inline code:
\cand\aarguments.
Everything else is prose in its scope: \title and \section1 through \section4 are headings, \li items are list entries or table cells, \b and \e are strong and emphasis, and \caption is a figure caption.
Classed paragraphs
\brief, \note, \warning, and \important become class scopes, so a rule can target them by name:
An unknown command is masked with its text kept, so a QDoc extension Vale doesn't know about degrades to plain prose rather than to noise.
Last updated