Skip to content

Move VarData element access to VarData::operator[] - #1425

Merged
vgvassilev merged 3 commits into
vgvassilev:masterfrom
PetroZarytskyi:more-tbr
Jul 1, 2025
Merged

Move VarData element access to VarData::operator[]#1425
vgvassilev merged 3 commits into
vgvassilev:masterfrom
PetroZarytskyi:more-tbr

Conversation

@PetroZarytskyi

Copy link
Copy Markdown
Collaborator

Element access of VarData is not trivial and sometimes requires initialization of new elements. For example, when a new element of an array is requested, it's built by copying the default index. It's better to have this logic in a single place.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

Comment thread lib/Differentiator/DiffPlanner.cpp
Comment thread lib/Differentiator/TBRAnalyzer.cpp Outdated
Comment thread lib/Differentiator/TBRAnalyzer.cpp Outdated
Comment thread lib/Differentiator/TBRAnalyzer.cpp

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

Comment thread lib/Differentiator/TBRAnalyzer.h Outdated
Element access of VarData is not trivial and sometimes requires initialization of new elements. For example, when a new element of an array is requested, it's built by copying the default index. It's better to have this logic in a single place.
@codecov

codecov Bot commented Jun 30, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@vgvassilev vgvassilev left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm!

@vgvassilev
vgvassilev merged commit c2259b8 into vgvassilev:master Jul 1, 2025
89 checks passed
@PetroZarytskyi
PetroZarytskyi deleted the more-tbr branch July 1, 2025 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants