diff options
| author | Alexander Kornienko <alexfh@google.com> | 2018-02-28 14:47:20 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2018-02-28 14:47:20 +0000 |
| commit | a1a29336340080d33893f82d5bf369df11615d58 (patch) | |
| tree | 201f199921c8ee58b8abe9665390d829128af9f8 /clang-tools-extra/docs | |
| parent | 7e4eee98311dcecc782a93265e62934570e096c1 (diff) | |
| download | bcm5719-llvm-a1a29336340080d33893f82d5bf369df11615d58.tar.gz bcm5719-llvm-a1a29336340080d33893f82d5bf369df11615d58.zip | |
Rename a few checks from misc- to bugprone-.
Summary:
rename_check.py {misc,bugprone}-forwarding-reference-overload
rename_check.py {misc,bugprone}-macro-repeated-side-effects
rename_check.py {misc,bugprone}-lambda-function-name
rename_check.py {misc,bugprone}-misplaced-widening-cast
Reviewers: hokein, sammccall, aaron.ballman
Reviewed By: aaron.ballman
Subscribers: klimek, cfe-commits, mgorny
Differential Revision: https://reviews.llvm.org/D43867
llvm-svn: 326327
Diffstat (limited to 'clang-tools-extra/docs')
| -rw-r--r-- | clang-tools-extra/docs/ReleaseNotes.rst | 12 | ||||
| -rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/bugprone-forwarding-reference-overload.rst (renamed from clang-tools-extra/docs/clang-tidy/checks/misc-forwarding-reference-overload.rst) | 6 | ||||
| -rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/bugprone-lambda-function-name.rst (renamed from clang-tools-extra/docs/clang-tidy/checks/misc-lambda-function-name.rst) | 6 | ||||
| -rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/bugprone-macro-repeated-side-effects.rst | 7 | ||||
| -rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-widening-cast.rst (renamed from clang-tools-extra/docs/clang-tidy/checks/misc-misplaced-widening-cast.rst) | 6 | ||||
| -rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/list.rst | 8 | ||||
| -rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/misc-macro-repeated-side-effects.rst | 7 |
7 files changed, 32 insertions, 20 deletions
diff --git a/clang-tools-extra/docs/ReleaseNotes.rst b/clang-tools-extra/docs/ReleaseNotes.rst index e6d3509043a..0e8ef01340a 100644 --- a/clang-tools-extra/docs/ReleaseNotes.rst +++ b/clang-tools-extra/docs/ReleaseNotes.rst @@ -57,6 +57,18 @@ The improvements are... Improvements to clang-tidy -------------------------- +- The 'misc-misplaced-widening-cast' check was renamed to `bugprone-misplaced-widening-cast + <http://clang.llvm.org/extra/clang-tidy/checks/bugprone-misplaced-widening-cast.html>`_ + +- The 'misc-lambda-function-name' check was renamed to `bugprone-lambda-function-name + <http://clang.llvm.org/extra/clang-tidy/checks/bugprone-lambda-function-name.html>`_ + +- The 'misc-macro-repeated-side-effects' check was renamed to `bugprone-macro-repeated-side-effects + <http://clang.llvm.org/extra/clang-tidy/checks/bugprone-macro-repeated-side-effects.html>`_ + +- The 'misc-forwarding-reference-overload' check was renamed to `bugprone-forwarding-reference-overload + <http://clang.llvm.org/extra/clang-tidy/checks/bugprone-forwarding-reference-overload.html>`_ + - The 'misc-incorrect-roundings' check was renamed to `bugprone-incorrect-roundings <http://clang.llvm.org/extra/clang-tidy/checks/bugprone-incorrect-roundings.html>`_ diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-forwarding-reference-overload.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-forwarding-reference-overload.rst index 1682a5fb982..ddf69dca93d 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/misc-forwarding-reference-overload.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-forwarding-reference-overload.rst @@ -1,7 +1,7 @@ -.. title:: clang-tidy - misc-forwarding-reference-overload +.. title:: clang-tidy - bugprone-forwarding-reference-overload -misc-forwarding-reference-overload -================================== +bugprone-forwarding-reference-overload +====================================== The check looks for perfect forwarding constructors that can hide copy or move constructors. If a non const lvalue reference is passed to the constructor, the diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-lambda-function-name.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-lambda-function-name.rst index 1ab584c1411..683977a3d2c 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/misc-lambda-function-name.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-lambda-function-name.rst @@ -1,7 +1,7 @@ -.. title:: clang-tidy - misc-lambda-function-name +.. title:: clang-tidy - bugprone-lambda-function-name -misc-lambda-function-name -========================= +bugprone-lambda-function-name +============================= Checks for attempts to get the name of a function from within a lambda expression. The name of a lambda is always something like ``operator()``, which diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-macro-repeated-side-effects.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-macro-repeated-side-effects.rst new file mode 100644 index 00000000000..15dfdcaf6c0 --- /dev/null +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-macro-repeated-side-effects.rst @@ -0,0 +1,7 @@ +.. title:: clang-tidy - bugprone-macro-repeated-side-effects + +bugprone-macro-repeated-side-effects +==================================== + + +Checks for repeated argument with side effects in macros. diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-misplaced-widening-cast.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-widening-cast.rst index a2fc2bfdff8..f42be76efaa 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/misc-misplaced-widening-cast.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-widening-cast.rst @@ -1,7 +1,7 @@ -.. title:: clang-tidy - misc-misplaced-widening-cast +.. title:: clang-tidy - bugprone-misplaced-widening-cast -misc-misplaced-widening-cast -============================ +bugprone-misplaced-widening-cast +================================ This check will warn when there is a cast of a calculation result to a bigger type. If the intention of the cast is to avoid loss of precision then the cast diff --git a/clang-tools-extra/docs/clang-tidy/checks/list.rst b/clang-tools-extra/docs/clang-tidy/checks/list.rst index f50fd716361..a632f5deb0d 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/list.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/list.rst @@ -24,10 +24,14 @@ Clang-Tidy Checks bugprone-dangling-handle bugprone-fold-init-type bugprone-forward-declaration-namespace + bugprone-forwarding-reference-overload bugprone-inaccurate-erase bugprone-incorrect-roundings bugprone-integer-division + bugprone-lambda-function-name + bugprone-macro-repeated-side-effects bugprone-misplaced-operator-in-strlen-in-alloc + bugprone-misplaced-widening-cast bugprone-move-forwarding-reference bugprone-multiple-statement-macro bugprone-string-constructor @@ -127,12 +131,8 @@ Clang-Tidy Checks llvm-namespace-comment llvm-twine-local misc-definitions-in-headers - misc-forwarding-reference-overload - misc-lambda-function-name misc-macro-parentheses - misc-macro-repeated-side-effects misc-misplaced-const - misc-misplaced-widening-cast misc-new-delete-overloads misc-non-copyable-objects misc-redundant-expression diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-macro-repeated-side-effects.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-macro-repeated-side-effects.rst deleted file mode 100644 index 7cd3781eec8..00000000000 --- a/clang-tools-extra/docs/clang-tidy/checks/misc-macro-repeated-side-effects.rst +++ /dev/null @@ -1,7 +0,0 @@ -.. title:: clang-tidy - misc-macro-repeated-side-effects - -misc-macro-repeated-side-effects -================================ - - -Checks for repeated argument with side effects in macros. |

