From: Alexander Kornienko Date: Thu, 17 Mar 2016 14:58:32 +0000 (+0000) Subject: Add clang-tidy release notes. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9fd77bd68130d9b2fbc56a3138b6f981d560480a;p=clang Add clang-tidy release notes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_38@263715 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst index 86a335cffd..2f3e3a1658 100644 --- a/docs/ReleaseNotes.rst +++ b/docs/ReleaseNotes.rst @@ -339,6 +339,76 @@ Several new checks were added: ``-enable-checker optin.osx.cocoa.localizability``. +Clang-tidy +---------- + +New checks have been added to clang-tidy: + +* Checks enforcing certain rules of the `CERT Secure Coding Standards + `_: + + * `cert-dcl03-c `_ + * `cert-dcl50-cpp `_ + * `cert-err52-cpp `_ + * `cert-err58-cpp `_ + * `cert-err60-cpp `_ + * `cert-err61-cpp `_ + * `cert-fio38-c `_ + * `cert-oop11-cpp `_ + +* Checks supporting the `C++ Core Guidelines + `_: + + * `cppcoreguidelines-pro-bounds-array-to-pointer-decay `_ + * `cppcoreguidelines-pro-bounds-constant-array-index `_ + * `cppcoreguidelines-pro-bounds-pointer-arithmetic `_ + * `cppcoreguidelines-pro-type-const-cast `_ + * `cppcoreguidelines-pro-type-cstyle-cast `_ + * `cppcoreguidelines-pro-type-reinterpret-cast `_ + * `cppcoreguidelines-pro-type-static-cast-downcast `_ + * `cppcoreguidelines-pro-type-union-access `_ + * `cppcoreguidelines-pro-type-vararg `_ + +* The functionality of the clang-modernize tool has been moved to the new + ``modernize`` module in clang-tidy along with a few new checks: + + * `modernize-loop-convert `_ + * `modernize-make-unique `_ + * `modernize-pass-by-value `_ + * `modernize-redundant-void-arg `_ + * `modernize-replace-auto-ptr `_ + * `modernize-shrink-to-fit `_ (renamed from readability-shrink-to-fit) + * `modernize-use-auto `_ + * `modernize-use-default `_ + * `modernize-use-nullptr `_ + * `modernize-use-override `_ (renamed from misc-use-override) + +* New checks flagging various readability-related issues: + + * `readability-identifier-naming `_ + * `readability-implicit-bool-cast `_ + * `readability-inconsistent-declaration-parameter-name `_ + * `readability-uniqueptr-delete-release `_ + +* New ``performance`` module for checks targeting potential performance issues: + + * performance-unnecessary-copy-initialization + +* A few new checks have been added to the ``misc`` module: + + * `misc-definitions-in-headers `_ + * misc-move-const-arg + * `misc-move-constructor-init `_ + * `misc-new-delete-overloads `_ + * `misc-non-copyable-objects `_ + * `misc-sizeof-container `_ + * `misc-string-integer-assignment `_ + * `misc-throw-by-value-catch-by-reference `_ + * `misc-unused-alias-decls `_ + * `misc-unused-parameters `_ + * `misc-virtual-near-miss `_ + + Additional Information ======================