Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit 1361480

Browse files
committed
step 01
1 parent dafbabb commit 1361480

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

courses/cpp/uboot/answers/step-01.ql

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
/**
2+
* @kind problem
3+
*/
4+
15
import cpp
26

37
from Function f
4-
where f.getName() = "getchar"
5-
select f
8+
where f.getName() = "strlen"
9+
select f, "a function named strlen"

courses/cpp/uboot/answers/step-02.ql

Lines changed: 0 additions & 5 deletions
This file was deleted.

courses/cpp/uboot/image/config/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"databasePath": "u-boot_u-boot_d0d07ba",
33
"locationPaths": "https://github.com/u-boot/u-boot/blob/d0d07ba86afc8074d79e436b1ba4478fa0f0c1b5{path}#L{line-start}-L{line-end}",
44
"expectedResults": {
5-
"step-01.ql": false
5+
"step-01.ql": "step-01.csv"
66
}
77
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"f","URL for f","col1"
2-
"getchar","file:///opt/src/libio/getchar.c:33:1:33:7","a getchar function"
3-
"getchar","file:///opt/src/libio/bits/stdio.h:47:1:47:7","a getchar function"
4-
"getchar","file:///opt/src/libio/bits/stdio.h:47:1:47:7","a getchar function"
2+
"strlen","file:///opt/src/include/linux/string.h:74:24:74:29","a function named strlen"
3+
"strlen","file:///usr/x86_64-linux-gnu/include/string.h:384:15:384:20","a function named strlen"
4+
"strlen","file:///opt/src/lib/string.c:264:8:264:13","a function named strlen"

0 commit comments

Comments
 (0)