Skip to content

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.

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
@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