Skip to content

Conversation

@mosra
Copy link
Owner

@mosra mosra commented Jan 1, 2023

Thought this was a quickie to whip up after 9ef4b4a but ultimately it wasn't, as always, and I ran out of time allocated for "random stuff".


If no alias, nullTerminated or align options are needed or the global values are sufficient, having to write a [file] section for each file is overly verbose. This allows to specify filename options directly in the global configuration section.

It's filename and not file in order to not have to further complicate the CMake parsing routine that extract dependency information from the file -- this way it doesn't even need to be changed.

Things left to do:

  • while basic support for this was easy enough, the filesystem group override code needs to be adapted and tested for this, which involves copying the file somewhere temporary and changing the contents (because we can't make use of an alias in this scenario)
  • there's also a newly uncovered bug, see the TODO in Resource.cpp
  • this also needs to be documented

If no alias, nullTerminated or align options are needed or the global
values are sufficient, having to write a [file] section for each file is
overly verbose. This allows to specify filename= options directly in the
global configuration section.

It's filename= and not file= in order to not have to further complicate
the CMake parsing routine that extract dependency information from the
file -- this way it doesn't even need to be changed.

TODO: while basic support for this was easy enough, the filesystem group
  override code needs to be adapted and tested for this, which involves
  copying the file somewhere temporary and changing the contents
  (because we can't make use of an alias in this scenario)
TODO: there's also a newly uncovered bug, see the TODO in Resource.cpp
TODO: this also needs to be documented
@codecov
Copy link

codecov bot commented Jan 2, 2023

Codecov Report

Attention: Patch coverage is 70.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 97.93%. Comparing base (b317b8a) to head (77e8588).
Report is 795 commits behind head on master.

Files with missing lines Patch % Lines
src/Corrade/Utility/Resource.cpp 33.33% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #163      +/-   ##
==========================================
- Coverage   97.98%   97.93%   -0.06%     
==========================================
  Files         136      136              
  Lines       11151    11170      +19     
==========================================
+ Hits        10926    10939      +13     
- Misses        225      231       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

1 participant