Skip to content

Commit 600f7f2

Browse files
[clangd] Add clangd 18 release notes (#84436)
1 parent bb83f05 commit 600f7f2

File tree

1 file changed

+36
-7
lines changed

1 file changed

+36
-7
lines changed

clang-tools-extra/docs/ReleaseNotes.rst

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,35 @@ Improvements to clangd
5151
Inlay hints
5252
^^^^^^^^^^^
5353

54-
Diagnostics
55-
^^^^^^^^^^^
56-
57-
Semantic Highlighting
58-
^^^^^^^^^^^^^^^^^^^^^
54+
- Type hints
55+
* Improved heuristics for showing sugared vs. desguared types
56+
* Some hints which provide no information (e.g. ``<dependent-type>``) are now omitted
57+
- Parameter hints
58+
* Parameter hints are now shown for calls through function pointers
59+
* Parameter hints are now shown for calls to a class's ``operator()``
60+
* No longer show bogus parameter hints for some builtins like ``__builtin_dump_struct``
5961

6062
Compile flags
6163
^^^^^^^^^^^^^
6264

65+
- System include extractor (``--query-driver``) improvements
66+
* The directory containing builtin headers is now excluded from extracted system includes
67+
* Various flags which can affect the system includes (``--target``, ``--stdlib``, ``-specs``) are now forwarded to the driver
68+
* Fixed a bug where clangd would sometimes try to call a driver that didn't have obj-c support with ``-x objective-c++-header``
69+
* The driver path is now dot-normalized before being compared to the ``--query-driver`` pattern
70+
* ``--query-driver`` is now supported by ``clangd-indexer``
71+
- Fixed a regression in clangd 17 where response files would not be expanded
72+
6373
Hover
6474
^^^^^
6575

76+
- Hover now shows alignment info for fields and records
77+
6678
Code completion
6779
^^^^^^^^^^^^^^^
6880

81+
- Refined heuristics for determining whether the use of a function can be a call or not
82+
6983
Code actions
7084
^^^^^^^^^^^^
7185

@@ -75,15 +89,25 @@ Code actions
7589
Signature help
7690
^^^^^^^^^^^^^^
7791

92+
- Improved support for calls through function pointer types
93+
7894
Cross-references
7995
^^^^^^^^^^^^^^^^
8096

97+
- Improved support for C++20 concepts
98+
- Find-references now works for labels
99+
- Improvements to template heuristics
100+
81101
Objective-C
82102
^^^^^^^^^^^
83103

84104
Miscellaneous
85105
^^^^^^^^^^^^^
86106

107+
- Various stability improvements, e.g. crash fixes
108+
- Improved error recovery on invalid code
109+
- Clangd now bails gracefully on assembly and IR source files
110+
87111
Improvements to clang-doc
88112
-------------------------
89113

@@ -564,10 +588,15 @@ Changes in existing checks
564588
Removed checks
565589
^^^^^^^^^^^^^^
566590

567-
Improvements to include-fixer
591+
Improvements to include-cleaner
568592
-----------------------------
569593

570-
The improvements are...
594+
- Support for ``--only-headers`` flag to limit analysis to headers matching a regex
595+
- Recognizes references through ``concept``s
596+
- Builtin headers are not analyzed
597+
- Handling of references through ``friend`` declarations
598+
- Fixes around handling of IWYU pragmas on stdlib headers
599+
- Improved handling around references to/from template specializations
571600

572601
Improvements to clang-include-fixer
573602
-----------------------------------

0 commit comments

Comments
 (0)