annotate clang/test/Analysis/analyzer-display-progress.m @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_analyze_cc1 -fblocks -analyzer-display-progress %s 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 #include "Inputs/system-header-simulator-objc.h"
anatofuz
parents:
diff changeset
4
236
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
5 static void f(void) {}
150
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 @interface I: NSObject
anatofuz
parents:
diff changeset
8 -(void)instanceMethod:(int)arg1 with:(int)arg2;
anatofuz
parents:
diff changeset
9 +(void)classMethod;
anatofuz
parents:
diff changeset
10 @end
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 @implementation I
anatofuz
parents:
diff changeset
13 -(void)instanceMethod:(int)arg1 with:(int)arg2 {}
anatofuz
parents:
diff changeset
14 +(void)classMethod {}
anatofuz
parents:
diff changeset
15 @end
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 void g(I *i, int x, int y) {
anatofuz
parents:
diff changeset
18 [I classMethod];
anatofuz
parents:
diff changeset
19 [i instanceMethod: x with: y];
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 void (^block)(void);
anatofuz
parents:
diff changeset
22 block = ^{};
anatofuz
parents:
diff changeset
23 block();
anatofuz
parents:
diff changeset
24 }
anatofuz
parents:
diff changeset
25
anatofuz
parents:
diff changeset
26 // CHECK: analyzer-display-progress.m f
anatofuz
parents:
diff changeset
27 // CHECK: analyzer-display-progress.m -[I instanceMethod:with:]
anatofuz
parents:
diff changeset
28 // CHECK: analyzer-display-progress.m +[I classMethod]
anatofuz
parents:
diff changeset
29 // CHECK: analyzer-display-progress.m g
anatofuz
parents:
diff changeset
30 // CHECK: analyzer-display-progress.m block (line: 22, col: 11)