forked from OSchip/llvm-project
[Documentation] Fix Clang-tidy misc-use-after-move and cert-msc50-cpp style and misspelling.
llvm-svn: 285848
This commit is contained in:
parent
ad90734caf
commit
1867c6cd42
|
@ -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()``.
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue