Skip to content

Commit ac4121d

Browse files
committed
C++: Describe compilation_build_mode using a case
1 parent 6f3e6ed commit ac4121d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

cpp/ql/lib/semmlecode.cpp.dbscheme

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,21 @@ compilation_args(
4949
/**
5050
* Optionally, record the build mode for each compilation.
5151
* The build mode should be the same for all compilations.
52-
* Build mode:
53-
* 0 = none
54-
* 1 = manual
55-
* 2 = auto
5652
*/
5753
#keyset[id, mode]
5854
compilation_build_mode(
5955
int id : @compilation ref,
6056
int mode : int ref
6157
);
6258

59+
/*
60+
case @compilation_build_mode.mode of
61+
0 = @build_mode_none
62+
| 1 = @build_mode_manual
63+
| 2 = @build_mode_auto
64+
;
65+
/*
66+
6367
/**
6468
* The source files that are compiled by a compiler invocation.
6569
* If `id` is for the compiler invocation

0 commit comments

Comments
 (0)