Skip to content

avoid using a temporary object when inserting into a container#7102

Merged
chrchr-github merged 2 commits into
cppcheck-opensource:mainfrom
firewave:insert-tmp
Dec 16, 2024
Merged

avoid using a temporary object when inserting into a container#7102
chrchr-github merged 2 commits into
cppcheck-opensource:mainfrom
firewave:insert-tmp

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

No description provided.

@firewave
Copy link
Copy Markdown
Collaborator Author

I filed https://trac.cppcheck.net/ticket/13428 and https://trac.cppcheck.net/ticket/13429 about the false negatives uncovered by this.

@firewave
Copy link
Copy Markdown
Collaborator Author

There is an upstream issue about detecting this in clang-tidy: llvm/llvm-project#79213.

@chrchr-github chrchr-github merged commit d58389d into cppcheck-opensource:main Dec 16, 2024
@firewave firewave deleted the insert-tmp branch December 16, 2024 12:08
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