Skip to content

Commit 0d8d9a3

Browse files
author
Paolo Tranquilli
committed
Merge branch 'main' into redsun82/rust-default-doc-signature
2 parents 10e4223 + 9b8ba41 commit 0d8d9a3

File tree

1,889 files changed

+30568
-7634
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,889 files changed

+30568
-7634
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
- id: clang-format
1616

1717
- repo: https://github.com/pre-commit/mirrors-autopep8
18-
rev: v1.6.0
18+
rev: v2.0.4
1919
hooks:
2020
- id: autopep8
2121
files: ^misc/codegen/.*\.py

Cargo.lock

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ members = [
66
"shared/tree-sitter-extractor",
77
"ruby/extractor",
88
"rust/extractor",
9+
"rust/extractor/macros",
910
]
1011

1112
[patch.crates-io]

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ r.from_cargo(
6060
"//:Cargo.toml",
6161
"//ruby/extractor:Cargo.toml",
6262
"//rust/extractor:Cargo.toml",
63+
"//rust/extractor/macros:Cargo.toml",
6364
"//shared/tree-sitter-extractor:Cargo.toml",
6465
],
6566
)

cpp/ql/lib/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
## 2.0.0
2+
3+
### Breaking Changes
4+
5+
* Deleted many deprecated taint-tracking configurations based on `TaintTracking::Configuration`.
6+
* Deleted many deprecated dataflow configurations based on `DataFlow::Configuration`.
7+
* Deleted the deprecated `hasQualifiedName` and `isDefined` predicates from the `Declaration` class, use `hasGlobalName` and `hasDefinition` respectively instead.
8+
* Deleted the `getFullSignature` predicate from the `Function` class, use `getIdentityString(Declaration)` from `semmle.code.cpp.Print` instead.
9+
* Deleted the deprecated `freeCall` predicate from `Alloc.qll`. Use `DeallocationExpr` instead.
10+
* Deleted the deprecated `explorationLimit` predicate from `DataFlow::Configuration`, use `FlowExploration<explorationLimit>` instead.
11+
* Deleted the deprecated `getFieldExpr` predicate from `ClassAggregateLiteral`, use `getAFieldExpr` instead.
12+
* Deleted the deprecated `getElementExpr` predicate from `ArrayOrVectorAggregateLiteral`, use `getAnElementExpr` instead.
13+
14+
### New Features
15+
16+
* Added a class `C11GenericExpr` to represent C11 generic selection expressions. The generic selection is represented as a `Conversion` on the expression that will be selected.
17+
* Added subclasses of `BuiltInOperations` for the `__is_scoped_enum`, `__is_trivially_equality_comparable`, and `__is_trivially_relocatable` builtin operations.
18+
* Added a subclass of `Expr` for `__datasizeof` expressions.
19+
20+
### Minor Analysis Improvements
21+
22+
* Added a data flow model for `swap` member functions, which were previously modeled as taint tracking functions. This change improves the precision of queries where flow through `swap` member functions might affect the results.
23+
* Added a data flow model for `realloc`-like functions, which were previously modeled as a taint tracking functions. This change improves the precision of queries where flow through `realloc`-like functions might affect the results.
24+
125
## 1.4.2
226

327
No user-facing changes.

cpp/ql/lib/change-notes/2024-08-28-more-builtin-operations.md

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

cpp/ql/lib/change-notes/2024-08-30-c11-generics.md

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

cpp/ql/lib/change-notes/2024-09-03-realloc-data-flow.md

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

cpp/ql/lib/change-notes/2024-09-04-swap-data-flow.md

Lines changed: 0 additions & 4 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
---
2-
category: breaking
3-
---
1+
## 2.0.0
2+
3+
### Breaking Changes
4+
45
* Deleted many deprecated taint-tracking configurations based on `TaintTracking::Configuration`.
56
* Deleted many deprecated dataflow configurations based on `DataFlow::Configuration`.
67
* Deleted the deprecated `hasQualifiedName` and `isDefined` predicates from the `Declaration` class, use `hasGlobalName` and `hasDefinition` respectively instead.
@@ -9,3 +10,14 @@ category: breaking
910
* Deleted the deprecated `explorationLimit` predicate from `DataFlow::Configuration`, use `FlowExploration<explorationLimit>` instead.
1011
* Deleted the deprecated `getFieldExpr` predicate from `ClassAggregateLiteral`, use `getAFieldExpr` instead.
1112
* Deleted the deprecated `getElementExpr` predicate from `ArrayOrVectorAggregateLiteral`, use `getAnElementExpr` instead.
13+
14+
### New Features
15+
16+
* Added a class `C11GenericExpr` to represent C11 generic selection expressions. The generic selection is represented as a `Conversion` on the expression that will be selected.
17+
* Added subclasses of `BuiltInOperations` for the `__is_scoped_enum`, `__is_trivially_equality_comparable`, and `__is_trivially_relocatable` builtin operations.
18+
* Added a subclass of `Expr` for `__datasizeof` expressions.
19+
20+
### Minor Analysis Improvements
21+
22+
* Added a data flow model for `swap` member functions, which were previously modeled as taint tracking functions. This change improves the precision of queries where flow through `swap` member functions might affect the results.
23+
* Added a data flow model for `realloc`-like functions, which were previously modeled as a taint tracking functions. This change improves the precision of queries where flow through `realloc`-like functions might affect the results.

0 commit comments

Comments
 (0)