Skip to content

Commit 6a5f500

Browse files
committed
comment
1 parent edebaad commit 6a5f500

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ void CrtpConstructorAccessibilityCheck::check(
125125
<< Friend;
126126
};
127127

128-
auto WithFriendHintIfNeeded = [&](DiagnosticBuilder Diag, bool NeedsFriend) {
128+
auto WithFriendHintIfNeeded =
129+
[&](const DiagnosticBuilder &Diag,
130+
bool NeedsFriend) -> const DiagnosticBuilder & {
129131
if (NeedsFriend)
130132
Diag << HintFriend;
131133

0 commit comments

Comments
 (0)