Extra Clang Tools 14.0.0 (In-Progress) Release Notes

Written by the LLVM Team


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


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

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 14.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

The improvements are…

Improvements to clang-doc

The improvements are…

Improvements to clang-query

The improvements are…

Improvements to clang-rename

The improvements are…

Improvements to clang-tidy

  • Make the cppcoreguidelines-pro-bounds-array-to-pointer-decay check accept string literal to pointer decay in conditional operator even if operands are of the same length.
  • Ignore warnings from macros defined in system headers, if not using the -system-headers flag.
  • Added support for globbing in NOLINT* expressions, to simplify suppressing multiple warnings in the same line.
  • Added support for NOLINTBEGINNOLINTEND comments to suppress Clang-Tidy warnings over multiple lines.
  • Generalized the modernize-use-default-member-init check to handle non-default constructors.
  • Eliminated false positives for cppcoreguidelines-macro-usage by restricting the warning about using constants to only macros that expand to literals.

New checks

Changes in existing checks

  • Removed default setting cppcoreguidelines-explicit-virtual-functions.IgnoreDestructors = "true", to match the current state of the C++ Core Guidelines.
  • Updated google-readability-casting to diagnose and fix functional casts, to achieve feature parity with the corresponding cpplint.py check.
  • Fixed a false positive in fuchsia-trailing-return for C++17 deduction guides.
  • Fixed a false positive in bugprone-throw-keyword-missing when creating an exception object using placement new
  • cppcoreguidelines-narrowing-conversions check now supports a WarnOnIntegerToFloatingPointNarrowingConversion option to control whether to warn on narrowing integer to floating-point conversions.

Improvements to include-fixer

The improvements are…

Improvements to clang-include-fixer

The improvements are…

Improvements to modularize

The improvements are…

Improvements to pp-trace

The improvements are…