Skip to content

Commit 2fe3cee

Browse files
authored
Merge pull request #86 from microsoft/dilan/2.18.3-upgrade
2.18.3 upgrade
2 parents 04f8010 + db7c90d commit 2fe3cee

File tree

1,148 files changed

+119515
-11380
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,148 files changed

+119515
-11380
lines changed

.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ common --registry=file:///%workspace%/misc/bazel/registry
2424
common --registry=https://bcr.bazel.build
2525

2626
common --@rules_dotnet//dotnet/settings:strict_deps=false
27+
common --experimental_isolated_extension_usages
2728

2829
try-import %workspace%/local.bazelrc

.bazelrc.internal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ common --registry=https://bcr.bazel.build
88
# its implementation packages without providing any code itself.
99
# We either can depend on internal implementation details, or turn of strict deps.
1010
common --@rules_dotnet//dotnet/settings:strict_deps=false
11+
common --experimental_isolated_extension_usages

MODULE.bazel

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module(
2-
name = "codeql",
2+
name = "ql",
33
version = "0.0",
4+
repo_name = "codeql",
45
)
56

67
# this points to our internal repository when `codeql` is checked out as a submodule thereof
@@ -30,27 +31,37 @@ bazel_dep(name = "rules_rust", version = "0.49.1")
3031

3132
bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True)
3233

33-
crate = use_extension(
34+
# crate_py but shortened due to Windows file path considerations
35+
cp = use_extension(
3436
"@rules_rust//crate_universe:extension.bzl",
3537
"crate",
38+
isolate = True,
3639
)
37-
crate.from_cargo(
40+
cp.from_cargo(
3841
name = "py_deps",
3942
cargo_lockfile = "//python/extractor/tsg-python:Cargo.lock",
4043
manifests = [
4144
"//python/extractor/tsg-python:Cargo.toml",
4245
"//python/extractor/tsg-python/tsp:Cargo.toml",
4346
],
4447
)
45-
crate.from_cargo(
46-
name = "ruby_deps",
48+
use_repo(cp, "py_deps")
49+
50+
# crate_ruby, but shortened due to windows file paths
51+
r = use_extension(
52+
"@rules_rust//crate_universe:extension.bzl",
53+
"crate",
54+
isolate = True,
55+
)
56+
r.from_cargo(
57+
name = "rd",
4758
cargo_lockfile = "//ruby/extractor:Cargo.lock",
4859
manifests = [
4960
"//ruby/extractor:Cargo.toml",
5061
"//ruby/extractor/codeql-extractor-fake-crate:Cargo.toml",
5162
],
5263
)
53-
use_repo(crate, "py_deps", "ruby_deps")
64+
use_repo(r, ruby_deps = "rd")
5465

5566
dotnet = use_extension("@rules_dotnet//dotnet:extensions.bzl", "dotnet")
5667
dotnet.toolchain(dotnet_version = "8.0.101")

cpp/ql/lib/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.4.1
2+
3+
No user-facing changes.
4+
15
## 1.4.0
26

37
### New Features
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 1.4.1
2+
3+
No user-facing changes.

cpp/ql/lib/codeql-pack.release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
lastReleaseVersion: 1.4.0
2+
lastReleaseVersion: 1.4.1

cpp/ql/lib/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: codeql/cpp-all
2-
version: 1.4.0
2+
version: 1.4.1
33
groups: cpp
44
dbscheme: semmlecode.cpp.dbscheme
55
extractor: cpp

cpp/ql/lib/semmle/code/cpp/dataflow/ExternalFlow.qll

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -953,21 +953,3 @@ private class SummarizedCallableAdapter extends SummarizedCallable {
953953
interpretSummary(this, _, _, _, provenance, _)
954954
}
955955
}
956-
957-
// adapter class for converting Mad neutrals to `NeutralCallable`s
958-
private class NeutralCallableAdapter extends NeutralCallable {
959-
string kind;
960-
string provenance_;
961-
962-
NeutralCallableAdapter() {
963-
// Neutral models have not been implemented for CPP.
964-
none() and
965-
exists(this) and
966-
exists(kind) and
967-
exists(provenance_)
968-
}
969-
970-
override string getKind() { result = kind }
971-
972-
override predicate hasProvenance(Provenance provenance) { provenance = provenance_ }
973-
}

cpp/ql/lib/semmle/code/cpp/dataflow/internal/DataFlowImpl1.qll

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -290,14 +290,6 @@ deprecated private module Config implements FullStateConfigSig {
290290

291291
FlowFeature getAFeature() { result = any(Configuration config).getAFeature() }
292292

293-
predicate sourceGrouping(Node source, string sourceGroup) {
294-
any(Configuration config).sourceGrouping(source, sourceGroup)
295-
}
296-
297-
predicate sinkGrouping(Node sink, string sinkGroup) {
298-
any(Configuration config).sinkGrouping(sink, sinkGroup)
299-
}
300-
301293
predicate includeHiddenNodes() { any(Configuration config).includeHiddenNodes() }
302294
}
303295

cpp/ql/lib/semmle/code/cpp/dataflow/internal/DataFlowImpl2.qll

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -290,14 +290,6 @@ deprecated private module Config implements FullStateConfigSig {
290290

291291
FlowFeature getAFeature() { result = any(Configuration config).getAFeature() }
292292

293-
predicate sourceGrouping(Node source, string sourceGroup) {
294-
any(Configuration config).sourceGrouping(source, sourceGroup)
295-
}
296-
297-
predicate sinkGrouping(Node sink, string sinkGroup) {
298-
any(Configuration config).sinkGrouping(sink, sinkGroup)
299-
}
300-
301293
predicate includeHiddenNodes() { any(Configuration config).includeHiddenNodes() }
302294
}
303295

0 commit comments

Comments
 (0)