Skip to content

Conversation

@firewave
Copy link
Collaborator

No description provided.

: FileWithDetails(std::move(path), Standards::Language::None, 0)
{}

FileWithDetails(std::string path, Standards::Language lang, std::size_t size)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe size = 0 should be the default?

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 would like to have it mandatory since the application code should not omit it without a good reason.

Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems to be always 0 though, except in the new tests.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That is because it was not accidentally omitted in the application code.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe this can be cleaned up with the draft changes to the size handling.

Copy link
Owner

@danmar danmar left a comment

Choose a reason for hiding this comment

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

looks ok for me

@firewave firewave merged commit 56be00d into danmar:main May 6, 2025
53 checks passed
@firewave firewave deleted the fs-lang branch May 6, 2025 15: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