Skip to content

Commit 4518c1e

Browse files
committed
Comments resolved.
1 parent 0f6d495 commit 4518c1e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang-tools-extra/clang-tidy/readability/NamedParameterCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void NamedParameterCheck::check(const MatchFinder::MatchResult &Result) {
125125
// The fix depends on the InsertPlainNamesInForwardDecls option,
126126
// whether this is a forward declaration and whether the parameter has
127127
// a real name.
128-
bool IsForwardDeclaration = (!Definition || Function != Definition);
128+
const bool IsForwardDeclaration = (!Definition || Function != Definition);
129129
if (InsertPlainNamesInForwardDecls && IsForwardDeclaration &&
130130
NewName != FallbackName) {
131131
// For forward declarations with InsertPlainNamesInForwardDecls enabled,

clang-tools-extra/docs/clang-tidy/checks/readability/named-parameter.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ Options
2929

3030
.. option:: InsertPlainNamesInForwardDecls
3131

32-
When `true`, the check will insert parameter names without comments for
33-
forward declarations only. When `false` (default), parameter names are
34-
always inserted as comments (e.g., ``/*param*/``).
32+
If set to `true`, the check will insert parameter names without comments for
33+
forward declarations only. Otherwise, the check will insert parameter names
34+
as comments (e.g., ``/*param*/``). Default is `false`.

0 commit comments

Comments
 (0)