17 lines · plain
1// RUN: clang-tidy %s -checks=-*,performance-unnecessary-value-param -- \2// RUN: -xobjective-c -fobjc-abi-version=2 -fobjc-arc | count 03 4#if !__has_feature(objc_arc)5#error Objective-C ARC not enabled as expected6#endif7 8// Passing an Objective-C ARC-managed object to a C function should9// not raise performance-unnecessary-value-param.10void foo(id object) { }11 12// Same for explicitly non-ARC-managed Objective-C objects.13void bar(__unsafe_unretained id object) { }14 15// Same for Objective-c classes.16void baz(Class c) { }17