예제 #1
0
RewriterASTConsumer::RewriterASTConsumer(const OwningPtr<CompilerInstance>& CI) :
    RewritenCpuSource{}, RewritenGpuSource{}, ParallelForEachCallCount{0}
{
    TheCpuRewriter.setSourceMgr(CI->getSourceManager(), CI->getLangOpts());
    TheGpuRewriter.setSourceMgr(CI->getSourceManager(), CI->getLangOpts());
}