njames93 added a comment. In D96760#2569151 <https://reviews.llvm.org/D96760#2569151>, @HazardyKnusperkeks wrote:
> In D96760#2565171 <https://reviews.llvm.org/D96760#2565171>, @njames93 wrote: > >> I did have another plan for a different way to go about this, not sure if >> its really any better though. >> It involved building a vector of the edits the config would apply to its >> parent. Then after the parent is parsed just applying those edits. >> It results in only 1 pass over the config file however it's a little more >> involved to get it to work. > > But then I need to rewrite the complete parsing process? Because in a normal > style I can not parse, because it is not apparent which entries are changed > because of the config, or do I oversee something? > > In D93844#2536354 <https://reviews.llvm.org/D93844#2536354>, @njames93 wrote: > >> As a follow up it may be wise to pass a diag handler to parseConfiguration >> as when we parse it a second time, we probably want to disregard any >> warnings (like unknown key) detected as they will have been printed on the >> first pass. > > And this is what you proposed. :) The diaghandler is a perfectly good solution, I was just spit balling ideas. But it is possible to store changes, though not much is gained for this use case. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D96760/new/ https://reviews.llvm.org/D96760 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits