<div>Hi:</div><div>I'm relatively new to the libClang API. Below are a few questions I have:</div><div>- I'm currently using ClangTool's ::buildASTs to construct AST from CompilationDatabase. Is there any API to do this in parallel to speed up this process?</div><div>- From previous step I can obtain an array of ASTUnit. AFAIK I should then get the ASTContext of this ASTUnit then call ASTContext::getTranslationUnitDecl() , my question is what is the next step to run my RecursiveASTVisitor on it?</div><div>- My third question is that is Clang's APIs generally thread-safe? As in can I safely do step 2 across multiple threads given that I dont share ASTContext among threads?</div><div><br></div><div>Zhang</div><div><br></div><div><includetail><!--<![endif]--></includetail></div>