mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: Generate CFG node for FormatArgsArg
This commit is contained in:
@@ -1067,13 +1067,13 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(FormatArgsArg)
|
||||
@annotate(FormatArgsArg, cfg = True)
|
||||
@qltest.test_with(FormatArgsExpr)
|
||||
class _:
|
||||
"""
|
||||
A FormatArgsArg. For example:
|
||||
A FormatArgsArg. For example the `"world"` in:
|
||||
```rust
|
||||
todo!()
|
||||
format_args!("Hello, {}!", "world")
|
||||
```
|
||||
"""
|
||||
|
||||
@@ -1871,6 +1871,10 @@ class Format(Locatable):
|
||||
```rust
|
||||
println!("Hello {}", "world");
|
||||
```
|
||||
or the `{value:#width$.precision$}` in:
|
||||
```rust
|
||||
println!("Value {value:#width$.precision$}");
|
||||
```
|
||||
"""
|
||||
parent: FormatArgsExpr
|
||||
index: int
|
||||
|
||||
Reference in New Issue
Block a user