diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-11-02 18:23:52 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-11-02 18:23:52 +0000 |
commit | 1867c6cd422a18a6e93a8c851d86993671a1718b (patch) | |
tree | 6338b32f68207bce66ac8df7308643069953be23 | |
parent | ad90734cafa653dc9a4ca665790df7ffbcae2a9f (diff) | |
download | bcm5719-llvm-1867c6cd422a18a6e93a8c851d86993671a1718b.tar.gz bcm5719-llvm-1867c6cd422a18a6e93a8c851d86993671a1718b.zip |
[Documentation] Fix Clang-tidy misc-use-after-move and cert-msc50-cpp style and misspelling.
llvm-svn: 285848
-rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/cert-msc50-cpp.rst | 7 | ||||
-rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/misc-use-after-move.rst | 6 |
2 files changed, 9 insertions, 4 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/cert-msc50-cpp.rst b/clang-tools-extra/docs/clang-tidy/checks/cert-msc50-cpp.rst index c823e323f9f..debf01cf2d3 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/cert-msc50-cpp.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/cert-msc50-cpp.rst @@ -3,4 +3,9 @@ cert-msc50-cpp ============== -Pseudorandom number generators use mathematical algorithms to produce a sequence of numbers with good statistical properties, but the numbers produced are not genuinely random. The ``std::rand()`` function takes a seed (number), runs a mathematical operation on it and returns the result. By manipulating the seed the result can be predictible. This check warns for the usage of ``std::rand()``. +Pseudorandom number generators use mathematical algorithms to produce a sequence +of numbers with good statistical properties, but the numbers produced are not +genuinely random. The ``std::rand()`` function takes a seed (number), runs a +mathematical operation on it and returns the result. By manipulating the seed +the result can be predictable. This check warns for the usage of +``std::rand()``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-use-after-move.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-use-after-move.rst index 8d94daeee67..e65860803ab 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/misc-use-after-move.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/misc-use-after-move.rst @@ -152,9 +152,9 @@ is considered to be a use. An exception to this are objects of type ``std::unique_ptr``, ``std::shared_ptr`` and ``std::weak_ptr``, which have defined move behavior (objects of these classes are guaranteed to be empty after they have been moved -from). Therefore, an object of these classes `` will only be considered to be -used if it is dereferenced, i.e. if ``operator*``, ``operator->`` or -``operator[]`` (in the case of ``std::unique_ptr<T []>``) is called on it. +from). Therefore, an object of these classes will only be considered to be used +if it is dereferenced, i.e. if ``operator*``, ``operator->`` or ``operator[]`` +(in the case of ``std::unique_ptr<T []>``) is called on it. If multiple uses occur after a move, only the first of these is flagged. |