==================================================== Extra Clang Tools |release| |ReleaseNotesTitle| ==================================================== .. contents:: :local: :depth: 3 Written by the `LLVM Team `_ .. only:: PreRelease .. warning:: These are in-progress notes for the upcoming Extra Clang Tools |version| 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 |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 |release|? ========================================== 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 ------------------------- The improvements are... Improvements to clang-query --------------------------- The improvements are... Improvements to clang-rename ---------------------------- The improvements are... Improvements to clang-tidy -------------------------- - Added trace code to help narrow down any checks and the relevant source code that result in crashes. - Clang-tidy now consideres newlines as separators of single elements in the `Checks` section in `.clang-tidy` configuration files. Where previously a comma had to be used to distinguish elements in this list from each other, newline characters now also work as separators in the parsed YAML. That means it is advised to use YAML's block style initiated by the pipe character `|` for the `Checks` section in order to benefit from the easier syntax that works without commas. New checks ^^^^^^^^^^ - New :doc:`bugprone-shared-ptr-array-mismatch ` check. Finds initializations of C++ shared pointers to non-array type that are initialized with an array. - New :doc:`modernize-macro-to-enum ` check. Replaces groups of adjacent macros with an unscoped anonymous enum. New check aliases ^^^^^^^^^^^^^^^^^ - New alias :doc:`cppcoreguidelines-macro-to-enum ` to :doc:`modernize-macro-to-enum ` was added. Changes in existing checks ^^^^^^^^^^^^^^^^^^^^^^^^^^ - Fixed a false positive in :doc:`readability-non-const-parameter ` when the parameter is referenced by an lvalue - Fixed a crash in :doc:`readability-const-return-type ` when a pure virtual function overrided has a const return type. Removed the fix for a virtual function. - Fixed a false positive in :doc:`misc-redundant-expression ` involving overloaded comparison operators. - Fixed a crash in :doc:`bugprone-sizeof-expression ` when `sizeof(...)` is compared agains a `__int128_t`. 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 ------------------------ The improvements are... Clang-tidy Visual Studio plugin -------------------------------