1
1
.. title :: clang-tidy - bugprone-libc-memory-calls-on-nontrivial-types
2
2
3
3
bugprone-libc-memory-calls-on-nontrivial-types
4
- ==============
4
+ ==============================================
5
5
6
- Flags use of the ` C ` standard library functions ``memset ``, ``memcpy `` and
6
+ Flags use of the C standard library functions ``memset ``, ``memcpy `` and
7
7
``memcmp `` and similar derivatives on non-trivial types.
8
8
9
9
Options
@@ -23,16 +23,16 @@ Options
23
23
Specify names in a semicolon delimited list.
24
24
Default is an empty string.
25
25
The check will detect the following functions:
26
- `std::memcpy `, `memcpy `, `std::memmove `, `memmove `, `std::strcpy `,
27
- `strcpy `, `memccpy `, `stpncpy `, `strncpy `.
26
+ `std::memcpy `, `` memcpy`, `std::memmove`, `` memmove `` , `` std::strcpy ` `,
27
+ `` strcpy `` , `` memccpy `` , `` stpncpy `` , `` strncpy ` `.
28
28
29
29
.. option :: MemCmpNames
30
30
31
31
Specify extra functions to flag that act similarly to ``memcmp ``.
32
32
Specify names in a semicolon delimited list.
33
33
Default is an empty string.
34
34
The check will detect the following functions:
35
- `std::memcmp `, `memcmp `, `std::strcmp `, `strcmp `, `strncmp `.
35
+ `` std::memcmp `` , `` memcmp `` , `` std::strcmp `` , `` strcmp `` , `` strncmp ` `.
36
36
37
37
This check corresponds to the CERT C++ Coding Standard rule
38
38
`OOP57-CPP. Prefer special member functions and overloaded operators to C
0 commit comments