| 1 |
// RUN: %clang_analyze_cc1 %s \ |
| 2 |
// RUN: -analyzer-checker=core \ |
| 3 |
// RUN: -analyzer-checker=nullability.NullReturnedFromNonnull |
| 4 |
|
| 5 |
// RUN: %clang_analyze_cc1 %s \ |
| 6 |
// RUN: -analyzer-checker=osx.cocoa.RetainCount \ |
| 7 |
// RUN: -analyzer-list-enabled-checkers \ |
| 8 |
// RUN: 2>&1 | FileCheck %s -check-prefix=CHECK-IMPLICITLY-ENABLED |
| 9 |
|
| 10 |
// CHECK-IMPLICITLY-ENABLED: osx.cocoa.RetainCountBase |
| 11 |
// CHECK-IMPLICITLY-ENABLED: osx.cocoa.RetainCount |
| 12 |
|
| 13 |
// RUN: %clang_analyze_cc1 %s \ |
| 14 |
// RUN: -analyzer-checker=osx.cocoa.RetainCount \ |
| 15 |
// RUN: -analyzer-disable-checker=osx.cocoa.RetainCountBase \ |
| 16 |
// RUN: -analyzer-list-enabled-checkers \ |
| 17 |
// RUN: 2>&1 | FileCheck %s -check-prefix=CHECK-IMPLICITLY-DISABLED |
| 18 |
|
| 19 |
// CHECK-IMPLICITLY-DISABLED-NOT: osx.cocoa.RetainCountBase |
| 20 |
// CHECK-IMPLICITLY-DISABLED-NOT: osx.cocoa.RetainCount |