File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff 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 ` .
You can’t perform that action at this time.
0 commit comments