=================================================== Extra Clang Tools 6.0.0 (In-Progress) Release Notes =================================================== .. contents:: :local: :depth: 3 Written by the `LLVM Team `_ .. warning:: These are in-progress notes for the upcoming Extra Clang Tools 6 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 6.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 Subversion 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 6.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. Major New Features ------------------ ... Improvements to clang-query --------------------------- The improvements are... Improvements to clang-rename ---------------------------- The improvements are... Improvements to clang-tidy -------------------------- - New `objc-avoid-spinlock `_ check Add new check to detect the use of OSSpinlock. - The 'misc-move-constructor-init' check was renamed to `performance-move-constructor-init `_ - The 'misc-inefficient-algorithm' check was renamed to `performance-inefficient-algorithm `_ - The 'misc-virtual-near-miss' check was renamed to `bugprone-virtual-near-miss `_ - The 'misc-use-after-move' check was renamed to `bugprone-use-after-move `_ - The 'misc-multiple-statement-macro' check was renamed to `bugprone-multiple-statement-macro `_ - The 'misc-move-forwarding-reference' check was renamed to `bugprone-move-forwarding-reference `_ - The 'misc-inaccurate-erase' check was renamed to `bugprone-inaccurate-erase `_ - The 'misc-forward-declaration-namespace' check was renamed to `bugprone-forward-declaration-namespace `_ - The 'misc-fold-init-type' check was renamed to `bugprone-fold-init-type `_ - The 'misc-bool-pointer-implicit-conversion' check was renamed to `bugprone-bool-pointer-implicit-conversion `_ - The 'misc-assert-side-effect' check was renamed to `bugprone-assert-side-effect `_ - The 'misc-dangling-handle' check was renamed to `bugprone-dangling-handle `_ - The 'misc-argument-comment' check was renamed to `bugprone-argument-comment `_ - The 'misc-string-constructor' check was renamed to `bugprone-string-constructor `_ - New `google-objc-avoid-throwing-exception `_ check Add new check to detect throwing exceptions in Objective-C code, which should be avoided. - New `objc-property-declaration `_ check Add new check for Objective-C code to ensure property names follow the naming convention of Apple's programming guide. - New `google-objc-global-variable-declaration `_ check Add new check for Objective-C code to ensure global variables follow the naming convention of 'k[A-Z].*' (for constants) or 'g[A-Z].*' (for variables). - New module `objc` for Objective-C style checks. - New `objc-forbidden-subclassing `_ check Ensures Objective-C classes do not subclass any classes which are not intended to be subclassed. Includes a list of classes from Foundation and UIKit which are documented as not supporting subclassing. - New `bugprone-misplaced-operator-in-strlen-in-alloc `_ check Finds cases where ``1`` is added to the string in the argument to ``strlen()``, ``strnlen()``, ``strnlen_s()``, ``wcslen()``, ``wcsnlen()``, and ``wcsnlen_s()`` instead of the result and the value is used as an argument to a memory allocation function (``malloc()``, ``calloc()``, ``realloc()``, ``alloca()``) or the ``new[]`` operator in `C++`. - Renamed checks to use correct term "implicit conversion" instead of "implicit cast" and modified messages and option names accordingly: * **performance-implicit-cast-in-loop** was renamed to `performance-implicit-conversion-in-loop `_ * **readability-implicit-bool-cast** was renamed to `readability-implicit-bool-conversion `_; the check's options were renamed as follows: ``AllowConditionalIntegerCasts`` -> ``AllowIntegerConditions``, ``AllowConditionalPointerCasts`` -> ``AllowPointerConditions``. - New `android-cloexec-accept `_ check Detects usage of ``accept()``. - New `android-cloexec-accept4 `_ check Checks if the required file flag ``SOCK_CLOEXEC`` is present in the argument of ``accept4()``. - New `android-cloexec-dup `_ check Detects usage of ``dup()``. - New `android-cloexec-inotify-init `_ check Detects usage of ``inotify_init()``. - New `android-cloexec-epoll-create1 `_ check Checks if the required file flag ``EPOLL_CLOEXEC`` is present in the argument of ``epoll_create1()``. - New `android-cloexec-epoll-create `_ check Detects usage of ``epoll_create()``. - New `android-cloexec-memfd_create `_ check Checks if the required file flag ``MFD_CLOEXEC`` is present in the argument of ``memfd_create()``. - New `bugprone-copy-constructor-init `_ check Finds copy constructors which don't call the copy constructor of the base class. - New `bugprone-integer-division `_ check Finds cases where integer division in a floating point context is likely to cause unintended loss of precision. - New `cppcoreguidelines-owning-memory `_ check This check implements the type-based semantic of ``gsl::owner``, but without flow analysis. - New `hicpp-exception-baseclass `_ check Ensures that all exception will be instances of ``std::exception`` and classes that are derived from it. - New `hicpp-signed-bitwise `_ check Finds uses of bitwise operations on signed integer types, which may lead to undefined or implementation defined behaviour. - New `android-cloexec-inotify-init1 `_ check Checks if the required file flag ``IN_CLOEXEC`` is present in the argument of ``inotify_init1()``. - New `readability-static-accessed-through-instance `_ check Finds member expressions that access static members through instances and replaces them with uses of the appropriate qualified-id. - Added `modernize-use-emplace.IgnoreImplicitConstructors `_ option. - Added aliases for the `High Integrity C++ Coding Standard `_ to already implemented checks in other modules. - `hicpp-deprecated-headers `_ - `hicpp-move-const-arg `_ - `hicpp-no-array-decay `_ - `hicpp-no-malloc `_ - `hicpp-static-assert `_ - `hicpp-use-auto `_ - `hicpp-use-emplace `_ - `hicpp-use-noexcept `_ - `hicpp-use-nullptr `_ - `hicpp-vararg `_ Improvements to include-fixer ----------------------------- The improvements are... Improvements to modularize -------------------------- The improvements are...