Skip to content

avoid some unnecessary copies#5958

Merged
chrchr-github merged 1 commit into
cppcheck-opensource:mainfrom
firewave:move-xx
Feb 12, 2024
Merged

avoid some unnecessary copies#5958
chrchr-github merged 1 commit into
cppcheck-opensource:mainfrom
firewave:move-xx

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

@firewave firewave commented Feb 7, 2024

this is mainly based on the warnings of the unfinished performance-unnecessary-copy-on-last-use clang-tidy check (see llvm/llvm-project#53489). it also includes some fixes spotted by review as well as some adjustments to the previous Coverity fixes

@firewave
Copy link
Copy Markdown
Collaborator Author

firewave commented Feb 7, 2024

There is https://trac.cppcheck.net/ticket/8945 about detecting this ourselves.

@firewave
Copy link
Copy Markdown
Collaborator Author

firewave commented Feb 7, 2024

Some change is causing more invocations of the valueflow. Still need to investigate.

@firewave firewave force-pushed the move-xx branch 2 times, most recently from d371a03 to 56e6e89 Compare February 12, 2024 16:38
this is mainly based on the warnings of the unfinished `performance-unnecessary-copy-on-last-use` clang-tidy check (see llvm/llvm-project#53489). it also includes some fixes spotted by review as well as some adjustments to the previous Coverity fixes
@firewave firewave marked this pull request as ready for review February 12, 2024 16:40
@firewave
Copy link
Copy Markdown
Collaborator Author

Some change is causing more invocations of the valueflow. Still need to investigate.

The change in question has been reverted.

@chrchr-github chrchr-github merged commit a656f10 into cppcheck-opensource:main Feb 12, 2024
@firewave firewave deleted the move-xx branch February 12, 2024 18:29
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