This commit enables providing long-form documentation more seamlessly to the LSP
by revamping decl documentation. For ODS imported constructs, we now also import
descriptions and attach them to decls when possible. For PDLL constructs, the LSP will
now try to provide documentation by parsing the comments directly above the decls
location within the source file. This commit also adds a new parser flag
enableDocumentation that gates the import and attachment of ODS documentation,
which is unnecessary in the normal build process (i.e. it should only be used/consumed
by tools).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Nice
mlir/lib/Tools/mlir-pdll-lsp-server/PDLLServer.cpp | ||
---|---|---|
151 | OOC should we check for docstring? |
mlir/lib/Tools/mlir-pdll-lsp-server/PDLLServer.cpp | ||
---|---|---|
151 | I think for simplicity it's good to just use whatever comments precede the decl, which should cover any form of //, ///, etc. |
OOC should we check for docstring?