Skip to content

Commit 7cb9024

Browse files
committed
Bulk generator: Flip default values for summaries, sources, and sinks.
1 parent 0f30644 commit 7cb9024

File tree

3 files changed

+18
-57
lines changed

3 files changed

+18
-57
lines changed

cpp/misc/bulk_generation_targets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"strategy": "dca",
33
"language": "cpp",
44
"targets": [
5-
{ "name": "openssl", "with-summaries": true },
6-
{ "name": "sqlite", "with-summaries": true }
5+
{ "name": "openssl", "with-sources": false, "with-sinks": false },
6+
{ "name": "sqlite", "with-sources": false, "with-sinks": false }
77
],
88
"destination": "cpp/ql/lib/ext/generated"
99
}

misc/scripts/models-as-data/bulk_generate_mad.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ class Project(TypedDict):
4747

4848

4949
def should_generate_sinks(project: Project) -> bool:
50-
return project.get("with-sinks", False)
50+
return project.get("with-sinks", True)
5151

5252

5353
def should_generate_sources(project: Project) -> bool:
54-
return project.get("with-sources", False)
54+
return project.get("with-sources", True)
5555

5656

5757
def should_generate_summaries(project: Project) -> bool:
58-
return project.get("with-summaries", False)
58+
return project.get("with-summaries", True)
5959

6060

6161
def clone_project(project: Project) -> str:

rust/misc/bulk_generation_targets.json

Lines changed: 13 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -5,106 +5,67 @@
55
{
66
"name": "libc",
77
"git_repo": "https://github.com/rust-lang/libc",
8-
"git_tag": "0.2.172",
9-
"with-sources": true,
10-
"with-sinks": true,
11-
"with-summaries": true
8+
"git_tag": "0.2.172"
129
},
1310
{
1411
"name": "log",
1512
"git_repo": "https://github.com/rust-lang/log",
16-
"git_tag": "0.4.27",
17-
"with-sources": true,
18-
"with-sinks": true,
19-
"with-summaries": true
13+
"git_tag": "0.4.27"
2014
},
2115
{
2216
"name": "memchr",
2317
"git_repo": "https://github.com/BurntSushi/memchr",
24-
"git_tag": "2.7.4",
25-
"with-sources": true,
26-
"with-sinks": true,
27-
"with-summaries": true
18+
"git_tag": "2.7.4"
2819
},
2920
{
3021
"name": "once_cell",
3122
"git_repo": "https://github.com/matklad/once_cell",
32-
"git_tag": "v1.21.3",
33-
"with-sources": true,
34-
"with-sinks": true,
35-
"with-summaries": true
23+
"git_tag": "v1.21.3"
3624
},
3725
{
3826
"name": "rand",
3927
"git_repo": "https://github.com/rust-random/rand",
40-
"git_tag": "0.9.1",
41-
"with-sources": true,
42-
"with-sinks": true,
43-
"with-summaries": true
28+
"git_tag": "0.9.1"
4429
},
4530
{
4631
"name": "smallvec",
4732
"git_repo": "https://github.com/servo/rust-smallvec",
48-
"git_tag": "v1.15.0",
49-
"with-sources": true,
50-
"with-sinks": true,
51-
"with-summaries": true
33+
"git_tag": "v1.15.0"
5234
},
5335
{
5436
"name": "serde",
5537
"git_repo": "https://github.com/serde-rs/serde",
56-
"git_tag": "v1.0.219",
57-
"with-sources": true,
58-
"with-sinks": true,
59-
"with-summaries": true
38+
"git_tag": "v1.0.219"
6039
},
6140
{
6241
"name": "tokio",
6342
"git_repo": "https://github.com/tokio-rs/tokio",
64-
"git_tag": "tokio-1.45.0",
65-
"with-sources": true,
66-
"with-sinks": true,
67-
"with-summaries": true
43+
"git_tag": "tokio-1.45.0"
6844
},
6945
{
7046
"name": "reqwest",
7147
"git_repo": "https://github.com/seanmonstar/reqwest",
72-
"git_tag": "v0.12.15",
73-
"with-sources": true,
74-
"with-sinks": true,
75-
"with-summaries": true
48+
"git_tag": "v0.12.15"
7649
},
7750
{
7851
"name": "rocket",
7952
"git_repo": "https://github.com/SergioBenitez/Rocket",
80-
"git_tag": "v0.5.1",
81-
"with-sources": true,
82-
"with-sinks": true,
83-
"with-summaries": true
53+
"git_tag": "v0.5.1"
8454
},
8555
{
8656
"name": "actix-web",
8757
"git_repo": "https://github.com/actix/actix-web",
88-
"git_tag": "web-v4.11.0",
89-
"with-sources": true,
90-
"with-sinks": true,
91-
"with-summaries": true
58+
"git_tag": "web-v4.11.0"
9259
},
9360
{
9461
"name": "hyper",
9562
"git_repo": "https://github.com/hyperium/hyper",
96-
"git_tag": "v1.6.0",
97-
"with-sources": true,
98-
"with-sinks": true,
99-
"with-summaries": true
63+
"git_tag": "v1.6.0"
10064
},
10165
{
10266
"name": "clap",
10367
"git_repo": "https://github.com/clap-rs/clap",
104-
"git_tag": "v4.5.38",
105-
"with-sources": true,
106-
"with-sinks": true,
107-
"with-summaries": true
68+
"git_tag": "v4.5.38"
10869
}
10970
],
11071
"destination": "rust/ql/lib/ext/generated",

0 commit comments

Comments
 (0)