Skip to content

Fix #12166 debug: varid0 with reference typedef#5643

Merged
chrchr-github merged 1 commit intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix12166
Nov 9, 2023
Merged

Fix #12166 debug: varid0 with reference typedef#5643
chrchr-github merged 1 commit intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix12166

Conversation

@chrchr-github
Copy link
Copy Markdown
Collaborator

Why do we even split any declarations in the first place?

@danmar
Copy link
Copy Markdown
Collaborator

danmar commented Nov 9, 2023

Why do we even split any declarations in the first place?

It would be better that we don't split the declarations and we can look at this later someday.

The reason; we did not have ast and valueflow to start with, then it made sense to split. we wanted to canonicalize the code as much as possible so there was as little variations as possible for the checkers to deal with. This meant they didn't have to deal with variable initialization syntax.

Now we have ast and valueflow and the logic is not put in the checkers anymore.. this simplification is not very helpful anymore. I would be happy to remove it.

@chrchr-github
Copy link
Copy Markdown
Collaborator Author

Thanks for the explanation, I figured it was from the old days.

@chrchr-github chrchr-github merged commit d24074f into cppcheck-opensource:main Nov 9, 2023
@chrchr-github chrchr-github deleted the chr_Fix12166 branch November 9, 2023 09:11
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