llvm-project/clang/test/Analysis/analyze-function-guide.m
Balazs Benics b3c0014e5a Revert "Revert "[analyzer] Prevent misuses of -analyze-function""
This reverts commit 620d99b7edc64ee87b1ce209f179305e6a919006.

Let's see if removing the two offending RUN lines makes this patch pass.
Not ideal to drop tests but, it's just a debugging feature, probably not
that important.
2022-02-16 10:33:21 +01:00

19 lines
540 B
Objective-C

// RUN: %clang_analyze_cc1 -analyzer-checker=core -Wno-objc-root-class \
// RUN: -analyze-function='missing_fn' \
// RUN: -triple x86_64-pc-linux-gnu 2>&1 %s \
// RUN: | FileCheck %s -check-prefix=CHECK-MISSING
//
// CHECK-MISSING: Every top-level function was skipped.
// CHECK-MISSING: Pass the -analyzer-display-progress for tracking which functions are analyzed.
@interface MyClass
- (int)messageWithFoo:(int)foo bar:(int)bar;
@end
@implementation MyClass
- (int)messageWithFoo:(int)foo bar:(int)bar {
return foo + bar;
}
@end