xref: /llvm-project/clang/test/Analysis/analyze-function-guide.m (revision b3c0014e5a7530645f502d8b19ef1df313cc85b9)
1
2// RUN: %clang_analyze_cc1 -analyzer-checker=core -Wno-objc-root-class \
3// RUN:   -analyze-function='missing_fn' \
4// RUN:   -triple x86_64-pc-linux-gnu 2>&1 %s \
5// RUN: | FileCheck %s -check-prefix=CHECK-MISSING
6//
7// CHECK-MISSING: Every top-level function was skipped.
8// CHECK-MISSING: Pass the -analyzer-display-progress for tracking which functions are analyzed.
9
10@interface MyClass
11- (int)messageWithFoo:(int)foo bar:(int)bar;
12@end
13
14@implementation MyClass
15- (int)messageWithFoo:(int)foo bar:(int)bar {
16  return foo + bar;
17}
18@end
19