Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to inline lambdas #268

Merged
merged 6 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# CHANGELOG

* Added option inline_lambda_messages to omit lambda expressions from sequence
diagrams (#261)
* Added support for CUDA calls in sequence diagrams (#263)
* Improved handling of message call comments (#264)
* Fixed handling of nested lambda expressions in sequence diagrams
Expand Down
11 changes: 11 additions & 0 deletions docs/sequence_diagrams.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,17 @@ results in the following diagram:

![extension](test_cases/t20012_sequence.svg)

In case lambda expressions are redundant and we are only interested in the calls
generate from the lambda expressions, it is possible to inline lambda
expressions in the generated diagrams by specifying the following option:

```yaml
inline_lambda_messages: true
```

For example compare the test cases [t20012](test_cases/t20012.md) and
[t20052](test_cases/t20052.md).

## Customizing participants order
The default participant order in the sequence diagram can be suboptimal in the
sense that consecutive calls can go right, then left, then right again
Expand Down
2 changes: 2 additions & 0 deletions docs/test_cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@
* [t20049](./test_cases/t20049.md) - Test case for CUDA kernel calls
* [t20050](./test_cases/t20050.md) - Test case for CUDA kernel calls with participants combined to file
* [t20051](./test_cases/t20051.md) - Test case for CUDA calls callee_type filter
* [t20052](./test_cases/t20052.md) - Test case for inlining lambda operator calls
* [t20053](./test_cases/t20053.md) - Test case for inlining nested lambda operator calls
## Package diagrams
* [t30001](./test_cases/t30001.md) - Basic package diagram test case
* [t30002](./test_cases/t30002.md) - Package dependency test case
Expand Down
68 changes: 34 additions & 34 deletions docs/test_cases/t00002_class.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions docs/test_cases/t00002_class_mermaid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading