Merge pull request #102 from ian-semmle/type_variants

C++: Tweak type_variants test
This commit is contained in:
Jonas Jensen
2018-08-27 10:34:45 +02:00
committed by GitHub
2 changed files with 12 additions and 9 deletions

View File

@@ -1,8 +1,11 @@
| IteratorT | 1 |
| common_function | 2 |
| first | 2 |
| last | 2 |
| operator!= | 1 |
| operator* | 1 |
| operator++ | 1 |
| print_int | 1 |
| common.h:3:6:3:14 | print_int | 1 | 1 |
| common.h:7:6:7:20 | common_function | 2 | 1 |
| debug.cpp:1:8:1:8 | IteratorT | 1 | 1 |
| debug.cpp:2:3:2:11 | IteratorT | 1 | 1 |
| debug.cpp:4:7:4:15 | operator* | 1 | 1 |
| debug.cpp:5:14:5:23 | operator++ | 1 | 1 |
| debug.cpp:11:6:11:15 | operator!= | 1 | 1 |
| debug.cpp:13:11:13:15 | first | 2 | 2 |
| debug.cpp:17:11:17:14 | last | 2 | 2 |
| release.cpp:7:11:7:15 | first | 2 | 2 |
| release.cpp:11:11:11:14 | last | 2 | 2 |

View File

@@ -1,4 +1,4 @@
import cpp
from Function f
select f.getName(), strictcount(f.getBlock())
select f, strictcount(f.getBlock()), count(f.getLocation())