diff options
author | Csaba Dabis <dabis.csaba98@gmail.com> | 2019-10-13 08:41:24 +0000 |
---|---|---|
committer | Csaba Dabis <dabis.csaba98@gmail.com> | 2019-10-13 08:41:24 +0000 |
commit | 2e77fcb05b387ded059e16bee64cc1c5a222baaf (patch) | |
tree | ee1e68f8149cb6ce93c1ed74566218699198aef9 | |
parent | 0fb5a1ee97ab7482f0a7e3051661dabc36ba052f (diff) | |
download | bcm5719-llvm-2e77fcb05b387ded059e16bee64cc1c5a222baaf.tar.gz bcm5719-llvm-2e77fcb05b387ded059e16bee64cc1c5a222baaf.zip |
[clang-tidy] bugprone-not-null-terminated-result: Sphinx adjustments
llvm-svn: 374709
-rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/bugprone-not-null-terminated-result.rst | 31 |
1 files changed, 16 insertions, 15 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 d6f797200e1..9bd60fb6f38 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,21 +91,22 @@ respectively (where only ``strerror_s`` does not have ``wchar_t`` based alias). Memory handler functions ^^^^^^^^^^^^^^^^^^^^^^^^ -- ``memcpy``: 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. - -- ``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``: given length is incremented by one. +- ``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. + +- ``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. String handler functions ^^^^^^^^^^^^^^^^^^^^^^^^ |