diff options
| author | Csaba Dabis <dabis.csaba98@gmail.com> | 2019-10-13 08:49:43 +0000 |
|---|---|---|
| committer | Csaba Dabis <dabis.csaba98@gmail.com> | 2019-10-13 08:49:43 +0000 |
| commit | adac533d957f8f2a11191d6a74532af8b70d077c (patch) | |
| tree | 0bf219d67223a0063e61d3d4c0b355b5f8353cf2 | |
| parent | 2e77fcb05b387ded059e16bee64cc1c5a222baaf (diff) | |
| download | bcm5719-llvm-adac533d957f8f2a11191d6a74532af8b70d077c.tar.gz bcm5719-llvm-adac533d957f8f2a11191d6a74532af8b70d077c.zip | |
[clang-tidy] bugprone-not-null-terminated-result: Sphinx adjustments 2
llvm-svn: 374710
| -rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/bugprone-not-null-terminated-result.rst | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-not-null-terminated-result.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-not-null-terminated-result.rst index 9bd60fb6f38..9e5a702630c 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-not-null-terminated-result.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-not-null-terminated-result.rst @@ -91,32 +91,36 @@ respectively (where only ``strerror_s`` does not have ``wchar_t`` based alias). Memory handler functions ^^^^^^^^^^^^^^^^^^^^^^^^ -- ``memcpy`` Please visit the - :ref:`Transformation rules of 'memcpy()'<MemcpyTransformation>` section. +``memcpy`` +Please visit the +:ref:`Transformation rules of 'memcpy()'<MemcpyTransformation>` section. -- ``memchr`` - Usually there is a C-style cast and it is needed to be removed, because the - new function ``strchr``'s return type is correct. - The given length is going to be removed. +``memchr`` +Usually there is a C-style cast and it is needed to be removed, because the +new function ``strchr``'s return type is correct. The given length is going +to be removed. -- ``memmove`` - If safe functions are available the new function is ``memmove_s``, which has - a new second argument which is the length of the destination array, it is - adjusted, and the length of the source string is incremented by one. - If safe functions are not available the given length is incremented by one. +``memmove`` +If safe functions are available the new function is ``memmove_s``, which has +a new second argument which is the length of the destination array, it is +adjusted, and the length of the source string is incremented by one. +If safe functions are not available the given length is incremented by one. -- ``memmove_s`` - The given length is incremented by one. +``memmove_s`` +The given length is incremented by one. String handler functions ^^^^^^^^^^^^^^^^^^^^^^^^ -- ``strerror_s``: given length is incremented by one. +``strerror_s`` +The given length is incremented by one. -- ``strncmp``: If the third argument is the first or the second argument's - ``length + 1`` it has to be truncated without the ``+ 1`` operation. +``strncmp`` +If the third argument is the first or the second argument's ``length + 1`` +it has to be truncated without the ``+ 1`` operation. -- ``strxfrm``: given length is incremented by one. +``strxfrm`` +The given length is incremented by one. Options ------- |

