aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Analysis/analyze-function-guide.m
blob: 9f0fc43a27ac34324a52c9c16bb3d232e3f7ba1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

// 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