<div dir="ltr">Hi,<div><br></div><div>I am trying to write a program that dumps the AST for a piece of code using Libclang. For this, I am passing "-Xclang" and "-ast-dump" as arguments to "clang_createTranslationUnitFromSourceFile". But this does not work. Can anyone tell me what I am doing wrong? Here is my exact code snippet:</div><div><br></div><div><div>const char* args[] = {"-Xclang", "-ast-dump"};</div><div>CXTranslationUnit tu = clang_createTranslationUnitFromSourceFile(CIdx, fileName, 2, args, 0, 0);<br></div></div><div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Thanks<div>Sidharth Chaturvedi</div></div></div>
</div></div>