migrating some of the file stuff to std::filesystem, in the naive hope of getting better cross-platform compatibility #254
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First part of #240 - migrating to std::filesystem goodies, parsing source and saving output files is now fully
std::filesystem::path
, include directories are checked by std::filesystem too.Opening files (for various includes) is still degrading path to strings and operating upon them with old implementation, I have some idea how to rewrite it, starting with filename archive becoming
std::set<...::path>
and returning iterators to it (dereference those to get path/string), maybe even opening the file for "rb" automatically.Needs more research and reshuffling of current code, so this will come as "part two".
But merging this part already to get working windows builds on master branch, this is technically fully working prod-quality version, as it should be with master branch head.