Skip to content

Commit 301c133

Browse files
committed
CPP: More descriptive.
1 parent 2042c9c commit 301c133

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
| CPP-205.cpp:0:0:0:0 | CPP-205.cpp | |
22
| CPP-205.cpp:1:20:1:20 | T | |
33
| CPP-205.cpp:1:20:1:20 | definition of T | |
4-
| CPP-205.cpp:2:5:2:6 | definition of fn | from fn<T>(T) -> int |
5-
| CPP-205.cpp:2:5:2:6 | fn | from fn<T>(T) -> int |
6-
| CPP-205.cpp:2:5:2:6 | fn | from fn<int>(int) -> int |
7-
| CPP-205.cpp:2:10:2:12 | definition of out | from fn<T>(T) -> int |
8-
| CPP-205.cpp:2:10:2:12 | out | from fn<T>(T) -> int |
9-
| CPP-205.cpp:2:10:2:12 | out | from fn<int>(int) -> int |
4+
| CPP-205.cpp:2:5:2:6 | definition of fn | function declaration entry for fn<T>(T) -> int |
5+
| CPP-205.cpp:2:5:2:6 | fn | function fn<T>(T) -> int |
6+
| CPP-205.cpp:2:5:2:6 | fn | function fn<int>(int) -> int |
7+
| CPP-205.cpp:2:10:2:12 | definition of out | parameter declaration entry for fn<T>(T) -> int |
8+
| CPP-205.cpp:2:10:2:12 | out | parameter for fn<T>(T) -> int |
9+
| CPP-205.cpp:2:10:2:12 | out | parameter for fn<int>(int) -> int |
1010
| CPP-205.cpp:2:15:5:1 | { ... } | |
1111
| CPP-205.cpp:2:15:5:1 | { ... } | |
1212
| CPP-205.cpp:3:3:3:33 | declaration | |
@@ -20,11 +20,11 @@
2020
| CPP-205.cpp:4:3:4:11 | return ... | |
2121
| CPP-205.cpp:4:10:4:10 | 0 | |
2222
| CPP-205.cpp:4:10:4:10 | 0 | |
23-
| CPP-205.cpp:7:5:7:8 | definition of main | from main() -> int |
24-
| CPP-205.cpp:7:5:7:8 | main | from main() -> int |
23+
| CPP-205.cpp:7:5:7:8 | definition of main | function declaration entry for main() -> int |
24+
| CPP-205.cpp:7:5:7:8 | main | function main() -> int |
2525
| CPP-205.cpp:7:12:9:1 | { ... } | |
2626
| CPP-205.cpp:8:3:8:15 | return ... | |
2727
| CPP-205.cpp:8:10:8:11 | call to fn | |
2828
| CPP-205.cpp:8:13:8:13 | 0 | |
29-
| file://:0:0:0:0 | operator= | from __va_list_tag::operator=() -> __va_list_tag & |
30-
| file://:0:0:0:0 | operator= | from __va_list_tag::operator=() -> __va_list_tag & |
29+
| file://:0:0:0:0 | operator= | function __va_list_tag::operator=() -> __va_list_tag & |
30+
| file://:0:0:0:0 | operator= | function __va_list_tag::operator=() -> __va_list_tag & |

cpp/ql/test/library-tests/CPP-205/elements.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import cpp
22

33
string describe(Element e) {
4-
result = "from " + e.(Function).getFullSignature()
4+
result = "function " + e.(Function).getFullSignature()
55
or
6-
result = "from " + e.(FunctionDeclarationEntry).getFunction().getFullSignature()
6+
result = "function declaration entry for " + e.(FunctionDeclarationEntry).getFunction().getFullSignature()
77
or
8-
result = "from " + e.(Parameter).getFunction().getFullSignature()
8+
result = "parameter for " + e.(Parameter).getFunction().getFullSignature()
99
or
10-
result = "from " + e.(ParameterDeclarationEntry).getFunctionDeclarationEntry().getFunction().getFullSignature()
10+
result = "parameter declaration entry for " + e.(ParameterDeclarationEntry).getFunctionDeclarationEntry().getFunction().getFullSignature()
1111
}
1212

1313
from Element e

0 commit comments

Comments
 (0)