Lines Matching refs:Unit
270 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction(
272 if (!Unit) {
280 ASTContext &Ctx = Unit->getASTContext();
284 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor());
293 Unit->getPreprocessor());
308 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor());
314 TransformActions testAct(*Diags, capturedDiags, Ctx, Unit->getPreprocessor());
315 MigrationPass pass(Ctx, OrigGCMode, Unit->getSema(), testAct, capturedDiags,
546 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction(
548 if (!Unit) {
552 Unit->setOwnsRemappedFileBuffers(false); // FileRemapper manages that.
559 ASTContext &Ctx = Unit->getASTContext();
563 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor());
575 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor());
578 TransformActions TA(*Diags, capturedDiags, Ctx, Unit->getPreprocessor());
580 Unit->getSema(), TA, capturedDiags, ARCMTMacroLocs);
610 Unit->getFileManager().FixupRelativePath(filePath);