Skip to content

Commit 61d21c1

Browse files
authored
Merge pull request github#2127 from matt-gretton-dann/cpp-451-invalid_key-for-var_decls-fun_decls
Use correct keysets for var_decls and fun_decls
2 parents 5aced3e + 692c29d commit 61d21c1

File tree

10 files changed

+3983
-88
lines changed

10 files changed

+3983
-88
lines changed

cpp/ql/src/semmlecode.cpp.dbscheme

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,9 @@ function_defaulted(unique int id: @function ref);
422422

423423

424424

425+
#keyset[id, type_id]
425426
fun_decls(
426-
unique int id: @fun_decl,
427+
int id: @fun_decl,
427428
int function: @function ref,
428429
int type_id: @type ref,
429430
string name: string ref,
@@ -460,8 +461,9 @@ param_decl_bind(
460461
int fun_decl: @fun_decl ref
461462
);
462463

464+
#keyset[id, type_id]
463465
var_decls(
464-
unique int id: @var_decl,
466+
int id: @var_decl,
465467
int variable: @variable ref,
466468
int type_id: @type ref,
467469
string name: string ref,

0 commit comments

Comments
 (0)