There is no syntax like {@code ...} in Doxygen, @code is a block command
that ends with @endcode, and generally these are not enclosed in braces.
The correct syntax for inline code snippets is @c <code>.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Interestingly we warn about the opposite problem:
/// @endcode int x;
produces "warning: '@endcode' command does not terminate a verbatim text block [-Wdocumentation]".
Maybe we're deliberately not doing this because it would be too annoying, not sure. Maybe @gribozavr2 knows that.