Skip to content

Latest commit

 

History

History
203 lines (144 loc) · 5.93 KB

ReleaseNotes.rst

File metadata and controls

203 lines (144 loc) · 5.93 KB

Extra Clang Tools

Written by the LLVM Team

PreRelease

Warning

These are in-progress notes for the upcoming Extra Clang Tools 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 . 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 ?

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.

Major New Features

...

Improvements to clangd

Inlay hints

Diagnostics

Semantic Highlighting

Compile flags

Hover

Code completion

Signature help

Cross-references

Objective-C

Miscellaneous

Improvements to clang-doc

Improvements to clang-query

The improvements are...

Improvements to clang-rename

The improvements are...

Improvements to clang-tidy

  • New global configuration file options HeaderFileExtensions and ImplementationFileExtensions, replacing the check-local options of the same name.

New checks

  • New bugprone-unsafe-functions <clang-tidy/checks/bugprone/unsafe-functions> check.

    Checks for functions that have safer, more secure replacements available, or are considered deprecated due to design flaws. This check relies heavily on, but is not exclusive to, the functions from the Annex K. "Bounds-checking interfaces" of C11.

  • New cppcoreguidelines-avoid-capture-default-when-capturing-this <clang-tidy/checks/cppcoreguidelines/avoid-capture-default-when-capturing-this> check.

    Warns when lambda specify a capture default and capture this.

  • New :doc: llvmlibc-inline-function-decl <clang-tidy/checks/llvmlibc/inline-function-decl> check.

    Checks that all implicit and explicit inline functions in header files are tagged with the LIBC_INLINE macro.

New check aliases

  • New alias cert-msc24-c <clang-tidy/checks/cert/msc24-c> to bugprone-unsafe-functions <clang-tidy/checks/bugprone/unsafe-functions> was added.
  • New alias cert-msc33-c <clang-tidy/checks/cert/msc33-c> to bugprone-unsafe-functions <clang-tidy/checks/bugprone/unsafe-functions> was added.

Changes in existing checks

  • Deprecated check-local options HeaderFileExtensions in bugprone-dynamic-static-initializers <clang-tidy/checks/bugprone/dynamic-static-initializers> check. Global options of the same name should be used instead.
  • Deprecated check-local options HeaderFileExtensions and ImplementationFileExtensions in bugprone-suspicious-include <clang-tidy/checks/bugprone/suspicious-include> check. Global options of the same name should be used instead.
  • Deprecated check-local options HeaderFileExtensions in google-build-namespaces <clang-tidy/checks/google/build-namespaces> check. Global options of the same name should be used instead.
  • Deprecated check-local options HeaderFileExtensions in google-global-names-in-headers <clang-tidy/checks/google/global-names-in-headers> check. Global options of the same name should be used instead.
  • Deprecated check-local options HeaderFileExtensions in llvm-header-guard <clang-tidy/checks/llvm/header-guard> check. Global options of the same name should be used instead.
  • Deprecated check-local options HeaderFileExtensions in misc-definitions-in-headers <clang-tidy/checks/misc/definitions-in-headers> check. Global options of the same name should be used instead.
  • Deprecated check-local options HeaderFileExtensions in misc-unused-using-decls <clang-tidy/checks/misc/unused-using-decls> check. Global options of the same name should be used instead.
  • Fixed reading HungarianNotation.CString.* options in readability-identifier-naming <clang-tidy/checks/readability/identifier-naming> check.
  • Fixed a false positive in readability-container-size-empty <clang-tidy/checks/readability/container-size-empty> check when comparing std::array objects to default constructed ones. The behavior for this and other relevant classes can now be configured with a new option.

Removed checks

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

Clang-tidy Visual Studio plugin