diff --git a/clang-tools-extra/docs/ReleaseNotes.rst b/clang-tools-extra/docs/ReleaseNotes.rst --- a/clang-tools-extra/docs/ReleaseNotes.rst +++ b/clang-tools-extra/docs/ReleaseNotes.rst @@ -47,7 +47,83 @@ Improvements to clangd ---------------------- -The improvements are... +- `clangd/inlayHints `_ + extension to provide hints about not directly available information in code, + like parameter names, deduced types and designated initializers. + +- Diagnostics and fixes for `unused include + `_ directives, according to + IWYU style. Off by default, can be turned on through + `Diagnostics.IncludeCleaner `_ + config option. + +- Implementation for `textDocument/typeDefinition` LSP request. + +- Relevant diagnostics are emitted with `Deprecated` and `Unnecessary` tags from + LSP. + +- New semantic highlighting kinds for: + - Virtual methods + - Mutable reference arguments + - Lambda captures + +- Support for attributes, (e.g. `[[nodiscard, gsl::Owner(Foo)]]`) in various + features like hover, code completion, go-to-definition. + +- `#pragma mark` directives now show up in document outline. + +- Hover displays: + - Resolved paths for include directives. + - Details about character litearls. + +- Include desugared types in hover, controlled with `Hover.ShowAKA + `_ config option. + +- Diagnostic fixes in more contexts like: + - Incomplete type errors. + - Implicit symbol declarations in C. + +- Code completion for parameter name comments. + +- Provide and improve signature help for: + - Variadic functions + - Template argument lists + - Braced constructor calls + - Aggregate initializers + - Constructor initializers + +- Improved handling of short identifiers in code completion and workspace symbol + requests. + +- Improved handling of symbols introduced via using declarations. + +- Respect warning flags mentioned in `.clang-tidy` config files in + `ExtraArgs(Before)` sections. + +- `CompileFlags.Compiler `_ config + option to override executable name in compile flags. + +- Compile flags effecting inputs (like -xc++-header) can now be added through + `CompileFlags.Add `_ config option. + +- PopulateSwitch code action is now offered as a fix for `-Wswitch` warnings and + works with C/ObjC enums. + +- `clangd --check=/path/to/file.cpp` now reads config files in ancestor + directories, in addition to user config file. + +- Improved compile flags handling in `clangd-indexer`. + +- Include documentation for annotations in code completion items. + +- `-use-dirty-headers` command line flag to use dirty buffer contents when + building preambles, rather than saved on-disk contents. + +- Improved handling of ObjC/ObjC++ constructs. + +- Include request context on crashes when possible. + +- Various stability and performance improvements. Improvements to clang-doc -------------------------