Skip to content

Fix constParameterPointer regression#5361

Merged
chrchr-github merged 1 commit intocppcheck-opensource:mainfrom
mptre:const-ptr-regress
Aug 23, 2023
Merged

Fix constParameterPointer regression#5361
chrchr-github merged 1 commit intocppcheck-opensource:mainfrom
mptre:const-ptr-regress

Conversation

@mptre
Copy link
Copy Markdown
Contributor

@mptre mptre commented Aug 22, 2023

Commit 7325154 ("Fix #11842 FN constParameterPointer with library function (#5257)") most likely introduced a regression for (C) function pointers passed to functions provided by the standard library that cppcheck has knowledge about.

@chrchr-github
Copy link
Copy Markdown
Collaborator

It would be easier to just remove the direction="in" attribute in std.cfg, see this similar commit: 824f895
I don't know what the direction was originally intended for, but we now use it to check constness for pointer arguments.

Commit 7325154 ("Fix #11842 FN constParameterPointer with library function
(cppcheck-opensource#5257)") most a regression for (C) function pointers passed to functions
provided by the standard library that cppcheck has knowledge about.
@mptre mptre force-pushed the const-ptr-regress branch from 58b34f8 to 5174333 Compare August 23, 2023 04:38
@chrchr-github chrchr-github merged commit 73b9442 into cppcheck-opensource:main Aug 23, 2023
@mptre mptre deleted the const-ptr-regress branch August 23, 2023 18:46
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