Skip to content

[XPTI] Follow rule of three in XPTI headers #16123

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

Merged
merged 6 commits into from
Nov 22, 2024

Conversation

ayylol
Copy link
Contributor

@ayylol ayylol commented Nov 19, 2024

No description provided.

@@ -734,6 +741,8 @@ class uid_object_t {
MUId.instance = 0;
};

~uid_object_t() = default;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only has one data member to deal with (xpti::uid128_t MUId), so default destructor should be fine

Comment on lines +1626 to +1627
tracepoint_t(const tracepoint_t &) = delete;
tracepoint_t &operator=(const tracepoint_t &) = delete;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

if a tracepoint_t object with m_top set to true is copied we would call xptiSetUniversalId(xpti::invalid_uid) twice on both of their destructions, so we likely do not want to be able to copy.

@ayylol ayylol marked this pull request as ready for review November 19, 2024 17:13
@ayylol ayylol requested a review from a team as a code owner November 19, 2024 17:13
@ayylol
Copy link
Contributor Author

ayylol commented Nov 21, 2024

@intel/llvm-reviewers-runtime @sergey-semenov Friendly ping

@againull
Copy link
Contributor


Failed Tests (1):
SYCL :: Graph/Update/dyn_cgf_different_arg_nums.cpp
was fixed in this commit: 925f6d3

@againull againull merged commit 53490a3 into intel:sycl Nov 22, 2024
12 of 13 checks passed
@ayylol ayylol deleted the xpti-rule-of-three branch November 22, 2024 16:33
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.

3 participants