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
The original implementation didn't fire on non-template classes when a
base class was an instantiation of a template with a dependent base.
In that case the base of the base is dependent as seen from the base,
but not from the class we're interested in, which isn't a template.
Also it simplifies the code a lot.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D98724
Copy file name to clipboardExpand all lines: clang/test/SemaCXX/warn-thread-safety-parsing.cpp
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1295,6 +1295,11 @@ struct SLDerived2 : public SLTemplateClass<int> {
1295
1295
// expected-warning{{'unlock_function' attribute without capability arguments refers to 'this', but 'SLDerived2' isn't annotated with 'capability' or 'scoped_lockable' attribute}}
1296
1296
};
1297
1297
1298
+
structSLDerived3 : publicSLTemplateDerived<int> {
1299
+
~SLDerived3() UNLOCK_FUNCTION(); // \
1300
+
// expected-warning{{'unlock_function' attribute without capability arguments refers to 'this', but 'SLDerived3' isn't annotated with 'capability' or 'scoped_lockable' attribute}}
0 commit comments