Skip to content

Conversation

@tcottin
Copy link
Contributor

@tcottin tcottin commented Aug 12, 2025

The Documentation config option was added with llvm/llvm-project#140498 which is related to clangd/clangd#529.

Copy link
Contributor

@HighCommander4 HighCommander4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your work on this!

config.md Outdated
Available modifiers could be found [here](features#modifiers) in the Modifier column.

## Documentation
{:.v21}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be v22 (llvm/llvm-project@5199489 is not present on the 21 branch), and as it's the first option to be added in v22, the styles need to be adjusted for it.

config.md Outdated

- `PlainText`: interpret code documentation as plain text. Markdown specific syntax will be escaped. On clients supporting markdown, this will result in showing markdown syntax without rendering. E.g. using \*\*bold text\*\* in the documentation comment will be shown as \*\*bold text\*\* and not as **bold text** in the hover/code completion.
- `Markdown`: interpret documentation comments as markdown. Markdown syntax will not be escaped, except for HTML tags. On clients supporting markdown, this will result in rendering all markdown syntax.
- `Doxygen`: interpret code documentation as [doxygen](https://www.doxygen.nl/) comments. In addition to treating the documentation as markdown, this will parse the documentation with Clangs doxygen parser. It will highlight used doxygen commands, convert doxygen commands to markdown syntax and extend hover content with e.g. function parameter or return documentation.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clangs doxygen parser --> Clang's doxygen parser

@HighCommander4 HighCommander4 merged commit 749b6fd into llvm:main Aug 15, 2025
@tcottin tcottin deleted the documentation-config-docs branch August 15, 2025 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants