bugprone-unused-raii-crash.mm 253 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 // RUN: clang-tidy %s -checks=-*,bugprone-unused-raii -- | count 0 struct CxxClass { ~CxxClass() {} }; @interface ObjcClass { } - (CxxClass)set:(int)p; @end void test(ObjcClass *s) { [s set:1]; // ok, no crash, no diagnostic emitted. return; }