Lines Matching refs:Unit
271 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction(
273 if (!Unit) {
281 ASTContext &Ctx = Unit->getASTContext();
285 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor());
294 Unit->getPreprocessor());
309 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor());
315 TransformActions testAct(*Diags, capturedDiags, Ctx, Unit->getPreprocessor());
316 MigrationPass pass(Ctx, OrigGCMode, Unit->getSema(), testAct, capturedDiags,
547 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction(
549 if (!Unit) {
553 Unit->setOwnsRemappedFileBuffers(false); // FileRemapper manages that.
560 ASTContext &Ctx = Unit->getASTContext();
564 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor());
576 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor());
579 TransformActions TA(*Diags, capturedDiags, Ctx, Unit->getPreprocessor());
581 Unit->getSema(), TA, capturedDiags, ARCMTMacroLocs);
611 Unit->getFileManager().FixupRelativePath(filePath);