Skip to content

ValueFlow: extracted ValueFlowAnalyzer into separate file#6640

Merged
chrchr-github merged 4 commits into
cppcheck-opensource:mainfrom
firewave:vf-inc-rew
Jul 26, 2024
Merged

ValueFlow: extracted ValueFlowAnalyzer into separate file#6640
chrchr-github merged 4 commits into
cppcheck-opensource:mainfrom
firewave:vf-inc-rew

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

No description provided.

@chrchr-github chrchr-github merged commit d7eb66d into cppcheck-opensource:main Jul 26, 2024
@firewave firewave deleted the vf-inc-rew branch July 26, 2024 12:30
@pfultz2
Copy link
Copy Markdown
Contributor

pfultz2 commented Jul 26, 2024

I dont think this should got to a header, it should be in a cpp file with the rest of the analyzers.

@firewave
Copy link
Copy Markdown
Collaborator Author

I do not understand the reasoning. Please elaborate.

@pfultz2
Copy link
Copy Markdown
Contributor

pfultz2 commented Jul 26, 2024

All the analyzer classes should go into the same cpp file. And the header should just expose functions to construct the analyzer(like makeAnalyzer) or the high-level functions such as valueFlowForward.

This change requires duplicating the function declaration in both the header and cpp file and when adding an internal function the header needs to be updated, which doesnt make sense since this is not meant to be an interface, and adds more unnecessary work.

@firewave firewave restored the vf-inc-rew branch July 27, 2024 08:11
@firewave firewave deleted the vf-inc-rew branch October 11, 2024 08:27
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.

3 participants