We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edebaad commit 6a5f500Copy full SHA for 6a5f500
clang-tools-extra/clang-tidy/bugprone/CrtpConstructorAccessibilityCheck.cpp
@@ -125,7 +125,9 @@ void CrtpConstructorAccessibilityCheck::check(
125
<< Friend;
126
};
127
128
- auto WithFriendHintIfNeeded = [&](DiagnosticBuilder Diag, bool NeedsFriend) {
+ auto WithFriendHintIfNeeded =
129
+ [&](const DiagnosticBuilder &Diag,
130
+ bool NeedsFriend) -> const DiagnosticBuilder & {
131
if (NeedsFriend)
132
Diag << HintFriend;
133
0 commit comments