Skip to content

moved some classes/structs into anonymous namespace - #5669

Merged
firewave merged 4 commits into
cppcheck-opensource:mainfrom
firewave:anon-ns
Nov 16, 2023
Merged

moved some classes/structs into anonymous namespace#5669
firewave merged 4 commits into
cppcheck-opensource:mainfrom
firewave:anon-ns

Conversation

@firewave

@firewavefirewave commented Nov 16, 2023

Copy link
Copy Markdown
Collaborator

No description provided.

@firewave

Copy link
Copy Markdown
CollaboratorAuthor

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.

Comment threadlib/infer.h
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
Copy Markdown
CollaboratorAuthor

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
Copy Markdown
CollaboratorAuthor

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

@firewave
firewave merged commit e473000 into cppcheck-opensource:mainNov 16, 2023
@firewave
firewave deleted the anon-ns branch November 16, 2023 14:49
Sign up for freeto 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

@firewave@danmar