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

Add support for source tracking #16

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add support for source tracking #16

wants to merge 3 commits into from

Conversation

TheDaemoness
Copy link
Owner

Closes #15.

Adds the track-source feature flag that, when enabled:

  • Allows RawValue to store the file and line number it originated from.
  • Makes ConfigParser generate RawValues that store their sources.

Probably needs more testing and it might be nice to add a flag to ec4rs_parse for this.

@TheDaemoness
Copy link
Owner Author

TheDaemoness commented Feb 1, 2025

Test failures don't appear related to this commit. Will fix in a separate branch.
Update: These test failures aren't unique to ec4rs.
This appears to be a CMake issue that's resolved in the latest versions of the test suite. After update, ec4rs only fails
175 - key_set_to_empty_string, which the reference impl also fails at the time of writing.

@TheDaemoness TheDaemoness force-pushed the track-source branch 2 times, most recently from bb21b20 to 11aa3a1 Compare February 10, 2025 18:35
Adds the track-source feature flag that, when enabled:
- Allows RawValue to store the file and line number it originated from.
- Makes ConfigParser generate RawValues that store their sources.
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.

Debug information
1 participant