<div dir="ltr">Hi,<div><br></div><div style>I want to create a Tool integrated in another application therefore I won't have a main function to call the tool. Which means I want to create the compilation database myself.</div>
<div style>(I need the tool to translate from clang ast to another ast (in memory structure) for a visual representation of the code)</div><div style><br></div><div style>Do I need a CompilationDatabase anyway because I only want to do frontendactions (no compilation - just preprocessing and ast visiting) ?</div>
<div style><br></div><div style>From the documentation I got the structure that is needed for compilation database file but I don't really understand what has to be in there. </div><div style><br></div><div style>Also I would like to know what actually happens internally by calling CompilationDatabase::loadFromDirectory(..)</div>
<div style><br></div><div style>Or would it be easier to just read the code in manually and then call runToolOnCode() ? </div><div style><br></div><div style>I would be happy if someone could clarify this whole thing a bit or point me to a Tutorial or some other example. (I looked through the clang Documentation pages but it didn't help me so far)</div>
<div style><br></div><div style>Thanks in advance.</div><div style><br></div><div style>Cheers,</div><div style><br></div><div style>Lukas</div></div>