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

fixed #12348 - fixed missing analyzer information for markup files #6952

Merged
merged 4 commits into from
Dec 5, 2024

Conversation

firewave
Copy link
Collaborator

No description provided.

lib/cppcheck.cpp Outdated
// TODO: set analyzer information

// TODO: how to get the proper tokenlist to generate the proper hash?
const std::size_t hash = time(nullptr); // calculateHash(tokenizer.list, mSettings);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This requires a simplecpp::TokenList which we do not create in this context.

This is a hack so the hash is different every time.

Copy link
Owner

Choose a reason for hiding this comment

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

The Preprocessor::calculateHash is pretty simple it should be possible to write a similar function that uses tokenizer.list.. as shown in the comment?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I can have a look.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I now generate a hash from the proper inputs.

@firewave firewave force-pushed the unused-xx branch 2 times, most recently from 178381c to ee3d733 Compare October 26, 2024 20:43
@firewave firewave merged commit 4a0da3a into danmar:main Dec 5, 2024
60 checks passed
@firewave firewave deleted the unused-xx branch December 5, 2024 16:15
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