Skip to content

Commit ebc10cf

Browse files
authored
Merge pull request github#2084 from matt-gretton-dann/cpp-445-synthetic_destructor_call-INVALID_KEY-warnings
Update keysets for synthetic_destructor_call and *variables tuple
2 parents b55e294 + d06e3d7 commit ebc10cf

File tree

5 files changed

+5417
-1540
lines changed

5 files changed

+5417
-1540
lines changed

cpp/ql/src/semmlecode.cpp.dbscheme

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,18 +521,21 @@ params(
521521

522522
overrides(int new: @function ref, int old: @function ref);
523523

524+
#keyset[id, type_id]
524525
membervariables(
525-
unique int id: @membervariable,
526+
int id: @membervariable,
526527
int type_id: @type ref,
527528
string name: string ref
528529
);
529530

531+
#keyset[id, type_id]
530532
globalvariables(
531-
unique int id: @globalvariable,
533+
int id: @globalvariable,
532534
int type_id: @type ref,
533535
string name: string ref
534536
);
535537

538+
#keyset[id, type_id]
536539
localvariables(
537540
int id: @localvariable,
538541
int type_id: @type ref,
@@ -1061,10 +1064,12 @@ compgenerated(unique int id: @element ref);
10611064
* destructed in reverse construction order, so for a given `element`
10621065
* these should be called from highest to lowest `i`.
10631066
*/
1067+
#keyset[element, destructor_call]
1068+
#keyset[element, i]
10641069
synthetic_destructor_call(
10651070
int element: @element ref,
10661071
int i: int ref,
1067-
unique int destructor_call: @routineexpr ref
1072+
int destructor_call: @routineexpr ref
10681073
);
10691074

10701075
namespaces(

0 commit comments

Comments
 (0)