mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
CPP: Merge the two unions tests.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
| unions.cpp:4:8:4:12 | Entry | Struct |
|
||||
| unions.cpp:13:7:13:11 | Value | Struct, Union |
|
||||
| unions.cpp:19:8:19:22 | EntryWithMethod | Struct |
|
||||
| unions.cpp:27:9:27:20 | MyLocalUnion | LocalUnion, Struct, Union |
|
||||
| unions.cpp:33:7:33:13 | MyClass | |
|
||||
| unions.cpp:36:9:36:21 | MyNestedUnion | NestedUnion, Struct, Union |
|
||||
| unions.cpp:4:8:4:12 | Entry | Struct | | operator= |
|
||||
| unions.cpp:13:7:13:11 | Value | Struct, Union | | operator= |
|
||||
| unions.cpp:19:8:19:22 | EntryWithMethod | Struct | Entry | getAsInt, operator= |
|
||||
| unions.cpp:27:9:27:20 | MyLocalUnion | LocalUnion, Struct, Union | | operator= |
|
||||
| unions.cpp:33:7:33:13 | MyClass | | | operator= |
|
||||
| unions.cpp:36:9:36:21 | MyNestedUnion | NestedUnion, Struct, Union | | operator= |
|
||||
|
||||
@@ -20,4 +20,6 @@ string describe(Class c)
|
||||
from Class c
|
||||
select
|
||||
c,
|
||||
concat(describe(c), ", ")
|
||||
concat(describe(c), ", "),
|
||||
concat(c.getABaseClass().toString(), ", "),
|
||||
concat(c.getAMemberFunction().toString(), ", ")
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
| unions.cpp:19:8:19:22 | EntryWithMethod | unions.cpp:4:8:4:12 | Entry | unions.cpp:19:8:19:8 | operator= |
|
||||
| unions.cpp:19:8:19:22 | EntryWithMethod | unions.cpp:4:8:4:12 | Entry | unions.cpp:19:8:19:8 | operator= |
|
||||
| unions.cpp:19:8:19:22 | EntryWithMethod | unions.cpp:4:8:4:12 | Entry | unions.cpp:20:7:20:14 | getAsInt |
|
||||
@@ -1,4 +0,0 @@
|
||||
import cpp
|
||||
|
||||
from Struct s
|
||||
select s, s.getABaseClass(), s.getAMemberFunction()
|
||||
Reference in New Issue
Block a user