Skip to content

Commit 2ada999

Browse files
committed
Rust: Include as expression in CFG nodes
1 parent f10ffa3 commit 2ada999

File tree

9 files changed

+84
-12
lines changed

9 files changed

+84
-12
lines changed

rust/ql/.generated.list

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

rust/ql/lib/codeql/rust/controlflow/internal/generated/CfgNodes.qll

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

rust/ql/lib/codeql/rust/elements/CastExpr.qll

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/ql/lib/codeql/rust/elements/internal/CastExprImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ private import codeql.rust.elements.internal.generated.CastExpr
1313
module Impl {
1414
// the following QLdoc is generated: if you need to edit it, do it in the schema file
1515
/**
16-
* A cast expression. For example:
16+
* A type cast expression. For example:
1717
* ```rust
1818
* value as u64;
1919
* ```

rust/ql/lib/codeql/rust/elements/internal/generated/CastExpr.qll

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/ql/lib/codeql/rust/elements/internal/generated/Raw.qll

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/ql/test/extractor-tests/generated/.generated_tests.list

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/ql/test/extractor-tests/generated/CastExpr/gen_cast_expr.rs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/schema/annotations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,10 @@ class _:
448448
"""
449449

450450

451-
@annotate(CastExpr)
451+
@annotate(CastExpr, cfg = True)
452452
class _:
453453
"""
454-
A cast expression. For example:
454+
A type cast expression. For example:
455455
```rust
456456
value as u64;
457457
```

0 commit comments

Comments
 (0)