forked from github/codeql
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,921 changed files
with
266,121 additions
and
104,054 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
7.0.2 | ||
7.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: "Code scanning - C++" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'rc/*' | ||
pull_request: | ||
branches: | ||
- main | ||
- 'rc/*' | ||
paths: | ||
- 'swift/**' | ||
- '.github/codeql/**' | ||
- '.github/workflows/cpp-swift-analysis.yml' | ||
schedule: | ||
- cron: '0 9 * * 1' | ||
|
||
jobs: | ||
CodeQL-Build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
security-events: write | ||
pull-requests: read | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@main | ||
# Override language selection by uncommenting this and choosing your languages | ||
with: | ||
languages: cpp | ||
config-file: ./.github/codeql/codeql-config.yml | ||
|
||
- name: "[Ubuntu] Remove GCC 13 from runner image" | ||
shell: bash | ||
run: | | ||
sudo rm -f /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-jammy.list | ||
sudo apt-get update | ||
sudo apt-get install -y --allow-downgrades libc6=2.35-* libc6-dev=2.35-* libstdc++6=12.3.0-* libgcc-s1=12.3.0-* | ||
- name: "Build Swift extractor using Bazel" | ||
run: | | ||
bazel clean --expunge | ||
bazel run //swift:create-extractor-pack --nouse_action_cache --noremote_accept_cached --noremote_upload_local_results --spawn_strategy=local --features=-layering_check | ||
bazel shutdown | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@main |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
cpp/downgrades/aa7ff0ab32cd4674f6ab731d32fea64116997b05/exprs.ql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class Expr extends @expr { | ||
string toString() { none() } | ||
} | ||
|
||
class Location extends @location_expr { | ||
string toString() { none() } | ||
} | ||
|
||
from Expr expr, int kind, int kind_new, Location loc | ||
where | ||
exprs(expr, kind, loc) and | ||
if kind = 363 then kind_new = 1 else kind_new = kind | ||
select expr, kind_new, loc |
Oops, something went wrong.