Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f52d792

Browse files
authored
Merge branch 'main' of https://github.com/github/codeql into python-dataflow/flow-summaries-from-scratch
2 parents 61523bd + 5b5a52f commit f52d792

685 files changed

Lines changed: 18961 additions & 5996 deletions

File tree

Some content is hidden

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

.github/workflows/swift-codegen.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,22 @@ jobs:
1515
- uses: actions/checkout@v3
1616
- uses: ./.github/actions/fetch-codeql
1717
- uses: bazelbuild/setup-bazelisk@v2
18+
- uses: actions/setup-python@v3
19+
- uses: pre-commit/[email protected]
20+
name: Check that python code is properly formatted
21+
with:
22+
extra_args: autopep8 --all-files
1823
- name: Run unit tests
1924
run: |
2025
bazel test //swift/codegen/test --test_output=errors
21-
- name: Check that QL generated code was checked in
22-
run: |
23-
bazel run //swift/codegen
24-
git add swift
25-
git diff --exit-code HEAD
26+
- uses: pre-commit/[email protected]
27+
name: Check that QL generated code was checked in
28+
with:
29+
extra_args: swift-codegen --all-files
2630
- name: Generate C++ files
2731
run: |
28-
bazel run //swift/codegen:codegen -- --generate=trap,cpp --cpp-output=$PWD/swift-generated-headers
32+
bazel run //swift/codegen:codegen -- --generate=trap,cpp --cpp-output=$PWD/swift-generated-cpp-files
2933
- uses: actions/upload-artifact@v3
3034
with:
31-
name: swift-generated-headers
32-
path: swift-generated-headers/*.h
35+
name: swift-generated-cpp-files
36+
path: swift-generated-cpp-files/**

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ repos:
1515
- id: clang-format
1616
files: ^swift/.*\.(h|c|cpp)$
1717

18+
- repo: https://github.com/pre-commit/mirrors-autopep8
19+
rev: v1.6.0
20+
hooks:
21+
- id: autopep8
22+
files: ^swift/codegen/.*\.py
23+
1824
- repo: local
1925
hooks:
2026
- id: codeql-format

config/identical-files.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -454,11 +454,11 @@
454454
"python/ql/src/Lexical/CommentedOutCodeReferences.inc.qhelp"
455455
],
456456
"IDE Contextual Queries": [
457-
"cpp/ql/src/IDEContextual.qll",
458-
"csharp/ql/src/IDEContextual.qll",
459-
"java/ql/src/IDEContextual.qll",
460-
"javascript/ql/src/IDEContextual.qll",
461-
"python/ql/src/analysis/IDEContextual.qll"
457+
"cpp/ql/lib/IDEContextual.qll",
458+
"csharp/ql/lib/IDEContextual.qll",
459+
"java/ql/lib/IDEContextual.qll",
460+
"javascript/ql/lib/IDEContextual.qll",
461+
"python/ql/lib/analysis/IDEContextual.qll"
462462
],
463463
"SSA C#": [
464464
"csharp/ql/lib/semmle/code/csharp/dataflow/internal/SsaImplCommon.qll",

cpp/ql/lib/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 0.3.0
2+
3+
### Deprecated APIs
4+
5+
* The `BarrierGuard` class has been deprecated. Such barriers and sanitizers can now instead be created using the new `BarrierGuard` parameterized module.
6+
7+
### Bug Fixes
8+
9+
* `UserType.getADeclarationEntry()` now yields all forward declarations when the user type is a `class`, `struct`, or `union`.
10+
111
## 0.2.3
212

313
### New Features

cpp/ql/lib/change-notes/2022-05-30-braced-initializers.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

cpp/ql/lib/change-notes/2022-06-22-class-declaration-entry-fix.md

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## 0.3.0
2+
3+
### Deprecated APIs
4+
5+
* The `BarrierGuard` class has been deprecated. Such barriers and sanitizers can now instead be created using the new `BarrierGuard` parameterized module.
6+
7+
### Bug Fixes
8+
9+
* `UserType.getADeclarationEntry()` now yields all forward declarations when the user type is a `class`, `struct`, or `union`.

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: 0.2.3
2+
lastReleaseVersion: 0.3.0

0 commit comments

Comments
 (0)