<div dir="ltr"><div>Sorry to take so long to get back on this one.<br></div><div><br></div><div>> If someone could get all of them 100% on-board with doing full semantic
analysis for dependency analysis, then I could just tank this paper
entirely. I would actually be 200% on board with that. But, I don't see
it happening anytime soon.</div><div><br></div><div>I believe convincing can be done in this regard. I'm not proposing that implementers add support for this as part of the preprocessor, but rather as another compiler option. Modern build tools such as Ninja grab the dependency information for a translation unit as part of invoking the compiler command, not by running the preprocessor separately. I'm preparing a post on how Ninja builds and performs dependency analysis, which I believe is the currently optimal way to do it. There may be some tweaks with the addition on modules, but it will still be applicable.</div><div><br></div><div>In short: Implicit dependency information is generated on-the-fly by the edge command as part of regular edge execution. Not only is semantic analysis executed, but the entire compilation process.</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 4, 2018 at 6:50 PM JeanHeyd Meneide <<a href="mailto:phdofthehouse@gmail.com">phdofthehouse@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Dear SG15,<br><br></div> To address one of the previous concerns, I've made sure to specifically add a call out a new Word of Power in this proposal: <a href="https://thephd.github.io/vendor/future_cxx/papers/d1130.html#wording-intent" target="_blank">https://thephd.github.io/vendor/future_cxx/papers/d1130.html#wording-intent</a>. It's called <i>resource-location</i> or <i>resource-locations</i>. This will give std::embed and other proposals a well-defined way of referring to a lookup mechanism. It is still implementation-defined where this comes from, but just like include paths I expect this to come from a Resource Path command line parameter that build systems can tap into.</div><div dir="ltr"><br></div><div> If you have any other concerns or questions, please do let me know!<br><br></div><div>Sincerely,<br></div><div>JeanHeyd Meneide<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 3, 2018 at 6:13 AM JeanHeyd Meneide <<a href="mailto:phdofthehouse@gmail.com" target="_blank">phdofthehouse@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>> That's insufficient: to be usable, it must also say that it is<br>> *the same* for all resource strings, regardless of which facility<br>
> (std::embed, etc) they are used in.
<br><br>Resource lookup will be exactly what is written in this paper, so long as I can get consensus and move this through the Committee.
As the author of std::embed, I have the privilege of moving these papers in sync. Should p1130 be accepted, std::embed will be updated to specifically call out Resource Lookup, as defined in [module.requires] (or whatever it ends up being).<br></div></div>
</blockquote></div>
_______________________________________________<br>
Tooling mailing list<br>
<a href="mailto:Tooling@isocpp.open-std.org" target="_blank">Tooling@isocpp.open-std.org</a><br>
<a href="http://www.open-std.org/mailman/listinfo/tooling" rel="noreferrer" target="_blank">http://www.open-std.org/mailman/listinfo/tooling</a><br>
</blockquote></div>