<div dir="ltr">Hi All,
<div><br></div><div>I've attached a preliminary patch for some feedback. This is my first foray into the serialization code so I've taken the simplest approach I could for now.</div><div><br></div><div>I've also moved LateParsedTemplateMap from the Parser to Sema. I did try and avoid this but plumbing the necessary calls via Sema to the Parser proved messy, and after considering the options I decided that moving the state to Sema was the lesser of the two evils.</div>
<div><br></div><div>Some may consider it a layering violation but as Sema effectively needs the data to finish its job and the state is nothing more than a couple of Decl pointers and a sequence of Tokens I thought it reasonable - after all Sema already deals with Tokens.</div>
<div><br></div><div>As I said the serialization approach I've taken is about as simplistic as possible. Lazy lookup/deserialization should really be performed on each FunctionDecl as they're instantiated rather than as a job lot for the whole TU (as currently implemented) - but I was hoping for some feedback before attempting that.</div>
<div><br></div><div>No real tests included yet, but suffice to say the current tests all pass.</div><div><br></div><div>Cheers,</div><div>Will.</div><div><br></div></div>