Skip to content

Commit 01c7fc1

Browse files
committed
C++: Tweak type_variants test
It's now easier to see what's happening in cases where 2 functions have the same name, or a function has 2 locations.
1 parent d4551e5 commit 01c7fc1

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed
Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
| IteratorT | 1 |
2-
| common_function | 2 |
3-
| first | 2 |
4-
| last | 2 |
5-
| operator!= | 1 |
6-
| operator* | 1 |
7-
| operator++ | 1 |
8-
| print_int | 1 |
1+
| common.h:3:6:3:14 | print_int | 1 | 1 |
2+
| common.h:7:6:7:20 | common_function | 2 | 1 |
3+
| debug.cpp:1:8:1:8 | IteratorT | 1 | 1 |
4+
| debug.cpp:2:3:2:11 | IteratorT | 1 | 1 |
5+
| debug.cpp:4:7:4:15 | operator* | 1 | 1 |
6+
| debug.cpp:5:14:5:23 | operator++ | 1 | 1 |
7+
| debug.cpp:11:6:11:15 | operator!= | 1 | 1 |
8+
| debug.cpp:13:11:13:15 | first | 2 | 2 |
9+
| debug.cpp:17:11:17:14 | last | 2 | 2 |
10+
| release.cpp:7:11:7:15 | first | 2 | 2 |
11+
| release.cpp:11:11:11:14 | last | 2 | 2 |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import cpp
22

33
from Function f
4-
select f.getName(), strictcount(f.getBlock())
4+
select f, strictcount(f.getBlock()), count(f.getLocation())

0 commit comments

Comments
 (0)