-
Notifications
You must be signed in to change notification settings - Fork 1.6k
chore: Enable remaining clang-tidy performance checks
#6648
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
base: develop
Are you sure you want to change the base?
Changes from all commits
21e817c
2ff60db
6c71288
7a9c057
8f59ba0
60d9d31
6c0c8ad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1024,7 +1024,7 @@ SHAMap::walkSubTree(bool doWrite, NodeObjectType t) | |
| // The semantics of this changes when we move to c++-20 | ||
| // Right now no move will occur; With c++-20 child will | ||
| // be moved from. | ||
| node = intr_ptr::static_pointer_cast<SHAMapInnerNode>(std::move(child)); | ||
| node = intr_ptr::static_pointer_cast<SHAMapInnerNode>(child); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably not related, but what is the comment here about if all the nodes are operated by pointers? |
||
| pos = 0; | ||
| } | ||
| else | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1193,7 +1193,7 @@ class Invariants_test : public beast::unit_test::suite | |
| STArray nfTokens = makeNFTokenIDs(1); | ||
| auto nftPage = std::make_shared<SLE>(keylet::nftpage( | ||
| keylet::nftpage_max(A1), ++(nfTokens[0].getFieldH256(sfNFTokenID)))); | ||
| nftPage->setFieldArray(sfNFTokens, std::move(nfTokens)); | ||
| nftPage->setFieldArray(sfNFTokens, nfTokens); | ||
| nftPage->setFieldH256(sfNextPageMin, keylet::nftpage_max(A2).key); | ||
|
|
||
| ac.view().insert(nftPage); | ||
|
|
@@ -1206,7 +1206,7 @@ class Invariants_test : public beast::unit_test::suite | |
| STArray nfTokens = makeNFTokenIDs(2); | ||
| auto nftPage = std::make_shared<SLE>(keylet::nftpage( | ||
| keylet::nftpage_max(A1), (nfTokens[1].getFieldH256(sfNFTokenID)))); | ||
| nftPage->setFieldArray(sfNFTokens, std::move(nfTokens)); | ||
| nftPage->setFieldArray(sfNFTokens, nfTokens); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We remove |
||
|
|
||
| ac.view().insert(nftPage); | ||
| return true; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment about move semantics changing "when we move to c++-20" is now misleading: the code no longer uses
std::move(child)here, so the described behavior doesn’t apply. Please update or remove the comment so it matches the current code and C++20 build settings.