This repository was archived by the owner on Feb 4, 2020. It is now read-only.
Recompile if a header file in a manifest has disappeared#209
Closed
siu wants to merge 3 commits intofrerich:masterfrom
Closed
Recompile if a header file in a manifest has disappeared#209siu wants to merge 3 commits intofrerich:masterfrom
siu wants to merge 3 commits intofrerich:masterfrom
Conversation
Contributor
|
See #179 |
Contributor
Author
|
My bad, I didn't see other PR. This PR can be closed when #179 is merged. |
Contributor
|
No problem :) You cannot really know all open issues and PRs and sometimes it is good to compare different ideas to solve a problem. Your approach is already pretty good and modulo naming and formatting, the same as #179. But there is one case not handled properly: when a header is missing and is allowed to be missing (was included by another header and got obsolete), you end up in postprocessNoManifestMiss instead of postprocessHeaderChangedMiss. This leads to source change misses in the statistics instead of header changed misses. I think/hope I did cover this in #179. I'd be very happy if you would find the time to test #179 and check if it fits your needs. |
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
clcache will throw an exception if a header file in a manifest has disappeared. How to reproduce:
clcache will throw an exception while computing the hashes of the files included in the manifest.
Note that the included test crashes with the master version of clcache but still fails with the patch because the compiler returns with error. This is expected as the code is invalid. I would like to change the test before this is merged by I am unsure about where in the tests this should be tested. What would be a better place to test this kind of behavior?