ReleaseNotes.rst 9.74 KB

Extra Clang Tools 10.0.0 Release Notes

Written by the LLVM Team

Introduction

This document contains the release notes for the Extra Clang Tools, part of the Clang release 10.0.0. Here we describe the status of the Extra Clang Tools in some detail, including major improvements from the previous release and new feature work. All LLVM releases may be downloaded from the LLVM releases web site.

For more information about Clang or LLVM, including information about the latest release, please see the Clang Web Site or the LLVM Web Site.

What's New in Extra Clang Tools 10.0.0?

Some of the major new features and improvements to Extra Clang Tools are listed here. Generic improvements to Extra Clang Tools as a whole or to its underlying infrastructure are described first, followed by tool-specific sections.

Improvements to clangd

  • clangd documentation is now found at https://clangd.llvm.org/

  • Go-to-definition, hover, find-references etc use a new mechanism to identify what is under the cursor, which is (hopefully) more consistent and accurate.

  • clangd should be able to reliably locate the standard library/SDK on macOS.

  • Shutdown more cleanly on receiving a signal. In particular temporary PCH files should be cleaned up.

  • Find references now works on macros.

  • clangd can be more easily used remotely or in a docker container.

    The --path-mappings flag translates between local and remote paths.

  • Experimental support for renaming across files (behind the --cross-file-rename flag).

  • Hover now exposes more information, including the type of symbols and the value of constant expressions.

  • Go to definition now works in dependent code in more cases, by assuming the primary template is used.

  • Better recovery and reporting when the compile command for a file can't be fully parsed.

  • Switch header/source (an extension) now uses index information in addition to filename heuristics, and is much more robust.

  • Semantic selection (expand/contract selection) is supported.

  • Semantic highlighting is more robust, highlights more types of tokens, and as an extension provides information about inactive preprocessor regions.

  • Code completion results now include an extension field score.

    This allows clients to incorporate clangd quality signals when re-ranking code completion after client-side fuzzy-matching.

  • New refactorings: define function out-of-line, define function in-line, extract function, remove using namespace directive, localize Objective-C string.

  • Bug fixes and performance improvements :-)

Improvements to clang-doc

Improvements to clang-tidy

New checks

New aliases

Changes in existing checks

Renamed checks

Clang-tidy visual studio plugin

The clang-tidy-vs plugin has been removed from clang, as it's no longer maintained. Users should migrate to Clang Power Tools instead.