Rust: Generate CFG node for FormatArgsArg

This commit is contained in:
Simon Friis Vindum
2025-01-03 13:58:25 +01:00
parent 42d125676e
commit 2ef9339d00
13 changed files with 114 additions and 24 deletions

View File

@@ -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