Extra Clang Tools 16.0.0git (In-Progress) Release Notes

Written by the LLVM Team

Warning

These are in-progress notes for the upcoming Extra Clang Tools 16 release. Release notes for previous releases can be found on the Download Page.

Introduction

This document contains the release notes for the Extra Clang Tools, part of the Clang release 16.0.0git. 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.

Note that if you are reading this file from a Git checkout or the main Clang web page, this document applies to the next release, not the current one. To see the release notes for a specific release, please see the releases page.

What’s New in Extra Clang Tools 16.0.0git?

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 clang-doc

  • The default executor was changed to standalone to match other tools.

Improvements to clang-query

The improvements are…

Improvements to clang-rename

The improvements are…

Improvements to clang-tidy

New checks

Changes in existing checks

  • Fixed a false positive in bugprone-assignment-in-if-condition check when there was an assignement in a lambda found in the condition of an if.

  • Improved bugprone-signal-handler check. Partial support for C++14 signal handler rules was added. Bug report generation was improved.

  • Fixed a false positive in cppcoreguidelines-pro-type-member-init when warnings would be emitted for uninitialized members of an anonymous union despite there being an initializer for one of the other members.

  • Improved modernize-use-emplace check.

    The check now supports detecting inefficient invocations of push and push_front on STL-style containers and replacing them with emplace or emplace_front.

    The check now supports detecting alias cases of push_back push and push_front on STL-style containers and replacing them with emplace_back, emplace or emplace_front.

  • Improved modernize-use-equals-default check.

    The check now skips unions/union-like classes since in this case a default constructor with empty body is not equivalent to the explicitly defaulted one. The check also skips copy assignment operators with nonstandard return types. The check is restricted to c++11-or-later.

Improvements to include-fixer

The improvements are…

Improvements to clang-include-fixer

The improvements are…

Improvements to modularize

The improvements are…