diff options
Diffstat (limited to 'clang-tools-extra/docs/ReleaseNotes.rst')
-rw-r--r-- | clang-tools-extra/docs/ReleaseNotes.rst | 58 |
1 files changed, 56 insertions, 2 deletions
diff --git a/clang-tools-extra/docs/ReleaseNotes.rst b/clang-tools-extra/docs/ReleaseNotes.rst index 2dc5c73..06641a6 100644 --- a/clang-tools-extra/docs/ReleaseNotes.rst +++ b/clang-tools-extra/docs/ReleaseNotes.rst @@ -1,3 +1,6 @@ +.. If you want to modify sections/contents permanently, you should modify both + ReleaseNotes.rst and ReleaseNotesTemplate.txt. + ==================================================== Extra Clang Tools |release| |ReleaseNotesTitle| ==================================================== @@ -101,6 +104,14 @@ Improvements to clang-query Improvements to clang-tidy -------------------------- +- The :program:`check_clang_tidy.py` tool now recognizes the ``-std`` argument + when run over C files. If ``-std`` is not specified, it defaults to + ``c99-or-later``. + +- :program:`clang-tidy` no longer attemps to analyze code from system headers + by default, greatly improving performance. This behavior is disabled if the + `SystemHeaders` option is enabled. + - The :program:`run-clang-tidy.py` and :program:`clang-tidy-diff.py` scripts now run checks in parallel by default using all available hardware threads. Both scripts display the number of threads being used in their output. @@ -109,6 +120,12 @@ Improvements to clang-tidy `enable-check-profile` to enable per-check timing profiles and print a report based on all analyzed files. +- Improved documentation of the `-line-filter` command-line flag of + :program:`clang-tidy` and :program:`run-clang-tidy.py`. + +- Improved :program:`clang-tidy` option `-quiet` by suppressing diagnostic + count messages. + New checks ^^^^^^^^^^ @@ -118,12 +135,25 @@ New checks Detects default initialization (to 0) of variables with ``enum`` type where the enum has no enumerator with value of 0. +- New :doc:`cppcoreguidelines-pro-bounds-avoid-unchecked-container-access + <clang-tidy/checks/cppcoreguidelines/pro-bounds-avoid-unchecked-container-access>` + check. + + Finds calls to ``operator[]`` in STL containers and suggests replacing them + with safe alternatives. + - New :doc:`llvm-mlir-op-builder <clang-tidy/checks/llvm/use-new-mlir-op-builder>` check. Checks for uses of MLIR's old/to be deprecated ``OpBuilder::create<T>`` form and suggests using ``T::create`` instead. +- New :doc:`misc-override-with-different-visibility + <clang-tidy/checks/misc/override-with-different-visibility>` check. + + Finds virtual function overrides with different visibility than the function + in the base class. + New check aliases ^^^^^^^^^^^^^^^^^ @@ -134,9 +164,13 @@ Changes in existing checks <clang-tidy/checks/bugprone/infinite-loop>` check by adding detection for variables introduced by structured bindings. +- Improved :doc:`bugprone-narrowing-conversions + <clang-tidy/checks/bugprone/narrowing-conversions>` check by fixing + false positive from analysis of a conditional expression in C. + - Improved :doc:`bugprone-reserved-identifier <clang-tidy/checks/bugprone/reserved-identifier>` check by ignoring - declarations in system headers. + declarations and macros in system headers. - Improved :doc:`bugprone-signed-char-misuse <clang-tidy/checks/bugprone/signed-char-misuse>` check by fixing @@ -153,9 +187,23 @@ Changes in existing checks an additional matcher that generalizes the copy-and-swap idiom pattern detection. +- Improved :doc:`cppcoreguidelines-prefer-member-initializer + <clang-tidy/checks/cppcoreguidelines/prefer-member-initializer>` check to + avoid false positives on inherited members in class templates. + +- Improved :doc:`cppcoreguidelines-pro-bounds-pointer-arithmetic + <clang-tidy/checks/cppcoreguidelines/pro-bounds-pointer-arithmetic>` check + adding an option to allow pointer arithmetic via prefix/postfix increment or + decrement operators. + - Improved :doc:`misc-header-include-cycle <clang-tidy/checks/misc/header-include-cycle>` check performance. +- Improved :doc:`modernize-use-constraints + <clang-tidy/checks/modernize/use-constraints>` check by fixing a crash on + uses of non-standard ``enable_if`` with a signature different from + ``std::enable_if`` (such as ``boost::enable_if``). + - Improved :doc:`modernize-use-designated-initializers <clang-tidy/checks/modernize/use-designated-initializers>` check to suggest using designated initializers for aliased aggregate types. @@ -182,9 +230,15 @@ Changes in existing checks <clang-tidy/checks/portability/template-virtual-member-function>` check to avoid false positives on pure virtual member functions. +- Improved :doc:`readability-container-size-empty + <clang-tidy/checks/readability/container-size-empty>` check by correctly + generating fix-it hints when size method is called from implicit ``this`` + and adding detection in container's method except ``empty``. + - Improved :doc:`readability-identifier-naming <clang-tidy/checks/readability/identifier-naming>` check by ignoring - declarations in system headers. + declarations and macros in system headers. The documentation is also improved + to differentiate the general options from the specific ones. - Improved :doc:`readability-qualified-auto <clang-tidy/checks/readability/qualified-auto>` check by adding the option |