Skip to content

Commit 553f1c4

Browse files
committed
C++: Update DB scheme to allow for constant expression as attribute arguments
1 parent 9ae9b89 commit 553f1c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cpp/ql/lib/semmlecode.cpp.dbscheme

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,7 @@ case @attribute_arg.kind of
899899
| 1 = @attribute_arg_token
900900
| 2 = @attribute_arg_constant
901901
| 3 = @attribute_arg_type
902+
| 4 = @attribute_arg_constant_expr
902903
;
903904

904905
attribute_arg_value(
@@ -909,6 +910,10 @@ attribute_arg_type(
909910
unique int arg: @attribute_arg ref,
910911
int type_id: @type ref
911912
);
913+
attribute_arg_constant(
914+
unique int arg: @attribute_arg ref,
915+
int constant: @expr ref
916+
)
912917
attribute_arg_name(
913918
unique int arg: @attribute_arg ref,
914919
string name: string ref

0 commit comments

Comments
 (0)