Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moved some classes/structs into anonymous namespace #5669

Merged
merged 4 commits into from
Nov 16, 2023

Conversation

firewave
Copy link
Collaborator

@firewave firewave commented Nov 16, 2023

No description provided.

@firewave
Copy link
Collaborator Author

There's several more which could be moved but those types are being used by forward declarations in the headers. That requires some refactoring first. I also didn't touch valueflow.cpp as it will be addressed as part of #4748.

@@ -57,6 +56,4 @@ std::vector<ValueFlow::Value> infer(const ValuePtr<InferModel>& model,
CPPCHECKLIB std::vector<MathLib::bigint> getMinValue(const ValuePtr<InferModel>& model, const std::list<ValueFlow::Value>& values);
std::vector<MathLib::bigint> getMaxValue(const ValuePtr<InferModel>& model, const std::list<ValueFlow::Value>& values);

std::string toString(const Interval& i);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pfultz2 it appears this function should have been called somewhere but it never way since it inception. Would have probably not been possible as it refers to an implementation-specific type.

@firewave
Copy link
Collaborator Author

This enables further diagnostics (and possibly optimizations) in the compiler as this ensures internal linkage of the types.

@firewave firewave merged commit e473000 into danmar:main Nov 16, 2023
68 checks passed
@firewave firewave deleted the anon-ns branch November 16, 2023 14:49
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