[Documentation] Fix Clang-tidy misc-use-after-move and cert-msc50-cpp style and missp...
authorEugene Zelenko <eugene.zelenko@gmail.com>
Wed, 2 Nov 2016 18:23:52 +0000 (18:23 +0000)
committerEugene Zelenko <eugene.zelenko@gmail.com>
Wed, 2 Nov 2016 18:23:52 +0000 (18:23 +0000)
llvm-svn: 285848

clang-tools-extra/docs/clang-tidy/checks/cert-msc50-cpp.rst
clang-tools-extra/docs/clang-tidy/checks/misc-use-after-move.rst

index c823e32..debf01c 100644 (file)
@@ -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()``.
index 8d94dae..e658608 100644 (file)
@@ -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.