Skip to content

Commit a928e61

Browse files
committed
Format function names properly
1 parent 292cafb commit a928e61

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

clang-tools-extra/clang-tidy/bugprone/LibcMemoryCallsOnNonTrivialTypesCheck.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace clang::tidy::bugprone {
1515

16-
/// Flags use of the `C` standard library functions 'memset', 'memcpy' and
16+
/// Flags use of the C standard library functions 'memset', 'memcpy' and
1717
/// 'memcmp' and similar derivatives on non-trivial types.
1818
///
1919
/// For the user-facing documentation see:

clang-tools-extra/docs/clang-tidy/checks/bugprone/libc-memory-calls-on-nontrivial-types.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. title:: clang-tidy - bugprone-libc-memory-calls-on-nontrivial-types
22

33
bugprone-libc-memory-calls-on-nontrivial-types
4-
==============
4+
==============================================
55

6-
Flags use of the `C` standard library functions ``memset``, ``memcpy`` and
6+
Flags use of the C standard library functions ``memset``, ``memcpy`` and
77
``memcmp`` and similar derivatives on non-trivial types.
88

99
Options
@@ -23,16 +23,16 @@ Options
2323
Specify names in a semicolon delimited list.
2424
Default is an empty string.
2525
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``.
2828

2929
.. option:: MemCmpNames
3030

3131
Specify extra functions to flag that act similarly to ``memcmp``.
3232
Specify names in a semicolon delimited list.
3333
Default is an empty string.
3434
The check will detect the following functions:
35-
`std::memcmp`, `memcmp`, `std::strcmp`, `strcmp`, `strncmp`.
35+
``std::memcmp``, ``memcmp``, ``std::strcmp``, ``strcmp``, ``strncmp``.
3636

3737
This check corresponds to the CERT C++ Coding Standard rule
3838
`OOP57-CPP. Prefer special member functions and overloaded operators to C

0 commit comments

Comments
 (0)