[clang-tools-extra] r285848 - [Documentation] Fix Clang-tidy misc-use-after-move and cert-msc50-cpp style and misspelling.
Eugene Zelenko via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 2 11:23:53 PDT 2016
Author: eugenezelenko
Date: Wed Nov 2 13:23:52 2016
New Revision: 285848
URL: http://llvm.org/viewvc/llvm-project?rev=285848&view=rev
Log:
[Documentation] Fix Clang-tidy misc-use-after-move and cert-msc50-cpp style and misspelling.
Modified:
clang-tools-extra/trunk/docs/clang-tidy/checks/cert-msc50-cpp.rst
clang-tools-extra/trunk/docs/clang-tidy/checks/misc-use-after-move.rst
Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/cert-msc50-cpp.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/cert-msc50-cpp.rst?rev=285848&r1=285847&r2=285848&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/checks/cert-msc50-cpp.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/checks/cert-msc50-cpp.rst Wed Nov 2 13:23:52 2016
@@ -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()``.
Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/misc-use-after-move.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/misc-use-after-move.rst?rev=285848&r1=285847&r2=285848&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/checks/misc-use-after-move.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/checks/misc-use-after-move.rst Wed Nov 2 13:23:52 2016
@@ -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.
More information about the cfe-commits
mailing list