Skip to content

Commit f8a61ff

Browse files
committed
C++: Expand the test as described in ODASA-640.
1 parent 0a7d9db commit f8a61ff

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
| declarationEntry.c:2:6:2:20 | declaration of myFirstFunction | |
2-
| declarationEntry.c:4:6:4:21 | definition of mySecondFunction | |
3-
| declarationEntry.c:8:6:8:20 | definition of myThirdFunction | |
4-
| declarationEntry.c:13:2:13:2 | declaration of myFourthFunction | isImplicit |
5-
| declarationEntry.c:14:2:14:2 | declaration of myFifthFunction | isImplicit |
6-
| declarationEntry.c:17:6:17:21 | declaration of myFourthFunction | |
7-
| declarationEntry.cpp:9:6:9:15 | declaration of myFunction | |
8-
| declarationEntry.cpp:11:6:11:15 | definition of myFunction | |
9-
| declarationEntry.cpp:28:7:28:7 | declaration of operator= | |
10-
| declarationEntry.cpp:28:7:28:7 | declaration of operator= | |
11-
| declarationEntry.cpp:28:7:28:7 | declaration of operator= | |
12-
| declarationEntry.cpp:28:7:28:7 | declaration of operator= | |
13-
| macro.c:2:1:2:3 | declaration of foo | |
14-
| macro.c:4:5:4:8 | definition of main | |
1+
| declarationEntry.c:2:6:2:20 | declaration of myFirstFunction | | 1 | c_linkage |
2+
| declarationEntry.c:4:6:4:21 | definition of mySecondFunction | | 1 | c_linkage |
3+
| declarationEntry.c:8:6:8:20 | definition of myThirdFunction | | 1 | c_linkage |
4+
| declarationEntry.c:13:2:13:2 | declaration of myFourthFunction | isImplicit | 1 | c_linkage |
5+
| declarationEntry.c:14:2:14:2 | declaration of myFifthFunction | isImplicit | 1 | c_linkage |
6+
| declarationEntry.c:17:6:17:21 | declaration of myFourthFunction | | 1 | c_linkage |
7+
| declarationEntry.cpp:9:6:9:15 | declaration of myFunction | | 0 | |
8+
| declarationEntry.cpp:11:6:11:15 | definition of myFunction | | 0 | |
9+
| declarationEntry.cpp:28:7:28:7 | declaration of operator= | | 0 | |
10+
| declarationEntry.cpp:28:7:28:7 | declaration of operator= | | 0 | |
11+
| declarationEntry.cpp:28:7:28:7 | declaration of operator= | | 0 | |
12+
| declarationEntry.cpp:28:7:28:7 | declaration of operator= | | 0 | |
13+
| macro.c:2:1:2:3 | declaration of foo | | 2 | c_linkage, static |
14+
| macro.c:4:5:4:8 | definition of main | | 1 | c_linkage |

cpp/ql/test/library-tests/declarationEntry/declarationEntry/fde.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ import cpp
22

33
from FunctionDeclarationEntry fde, string imp
44
where if fde.isImplicit() then imp = "isImplicit" else imp = ""
5-
select fde, imp
5+
select fde, imp, count(fde.getASpecifier()), concat(fde.getASpecifier().toString(), ", ")

0 commit comments

Comments
 (0)