Skip to content

Commit 43153e3

Browse files
committed
fixed formatting and documentation
1 parent f2eb00d commit 43153e3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#include "BoolPointerImplicitConversionCheck.h"
1818
#include "BranchCloneCheck.h"
1919
#include "CapturingThisInMemberVariableCheck.h"
20-
#include "CastingThroughVoidCheck.h"
2120
#include "CastToStructCheck.h"
21+
#include "CastingThroughVoidCheck.h"
2222
#include "ChainedComparisonCheck.h"
2323
#include "ComparePointerToMemberVirtualFunctionCheck.h"
2424
#include "CopyConstructorInitCheck.h"

clang-tools-extra/docs/clang-tidy/checks/bugprone/cast-to-struct.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Limitations
3838

3939
The check does run only on `C` code.
4040

41-
C-style casts are discouraged in `C++` and should be converted to more type-safe
41+
C-style casts are discouraged in C++ and should be converted to more type-safe
4242
casts. The ``reinterpreted_cast`` is used for the most unsafe cases and
4343
indicates by itself a potentially dangerous operation. Additionally, inheritance
4444
and dynamic types would make such a check less useful.
@@ -52,7 +52,7 @@ Options
5252
types to ignore. The list should contain pairs of type names in a way that
5353
the first type is the "from" type, the second is the "to" type in a cast
5454
expression. The types in a pair and the pairs itself are separated by
55-
``;`` characters. For example ``char;Type1;char;Type2`` specifies that the
55+
`;` characters. For example `char;Type1;char;Type2` specifies that the
5656
check does not produce warning for casts from ``char *`` to ``Type1 *`` and
5757
casts from ``char *`` to ``Type2 *``. The list entries can be regular
5858
expressions. The type name in the cast expression is matched without

0 commit comments

Comments
 (0)