summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs/clang-tidy/checks/google-runtime-memset.rst
blob: 3832b6e44856c8361a1719a0deaf3697e5265188 (plain)
1
2
3
4
5
6
7
8
9
10
.. title:: clang-tidy - google-runtime-memset

google-runtime-memset
=====================

Finds calls to ``memset`` with a literal zero in the length argument.

This is most likely unintended and the length and value arguments are swapped.

Corresponding cpplint.py check name: `runtime/memset`.
OpenPOWER on IntegriCloud