You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang-tools-extra/test/clang-tidy/checkers/bugprone/crtp-constructor-accessibility.cpp
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -236,6 +236,20 @@ class A : CRTP<A> {};
236
236
classB : CRTP<B> {};
237
237
} // namespace explicit_derived_friend_multiple
238
238
239
+
namespaceno_need_for_friend {
240
+
classA;
241
+
242
+
template <typename T>
243
+
classCRTP {
244
+
// CHECK-MESSAGES: :[[@LINE-1]]:7: warning: the implicit default constructor of the CRTP is publicly accessible [bugprone-crtp-constructor-accessibility]
245
+
// CHECK-MESSAGES: :[[@LINE-2]]:7: note: consider making it private
0 commit comments