<div dir="ltr"><span style="font-size:12.8px">Hi,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I have a source project (<a href="https://github.com/elemental/Elemental">https://github.com/elemental/Elemental</a>) with ~467 c++ headers and ~578 c++ source files, and ~500 thousand lines of code (according to sloccount).</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I would like to produce 467 header files where I remove the ; character from forward declarations and insert the body of function { .... } from the source c++ file.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I'm wondering if such a script exists, perhaps making using of a clang api. If not, would someone be willing to point me at what parts of the clang api might be useful for achieving this? It seems that the rewriter would do the actual rewriting of the file, but, i'm not sure how to appropriately walk to the source files via the clang api.. </div><div style="font-size:12.8px"><div><div dir="ltr"><br></div></div></div><div><div class="gmail_signature"><div dir="ltr">Best,<br>-rhl<br></div></div></div>
</div>