Home | History | Annotate | Download | only in libclang

Lines Matching refs:Unit

521   ASTUnit *Unit = ASTUnit::create(CInvok.get(), Diags, CaptureDiagnostics,
523 if (!Unit)
527 new CXTUOwner(MakeCXTranslationUnit(CXXIdx, Unit)));
587 IndexAction.get(), Unit, Persistent, CXXIdx->getClangResourcesPath(),
593 printDiagsToStderr(Unit);
595 if (isASTReadError(Unit))
611 static void indexPreprocessingRecord(ASTUnit &Unit, CXIndexDataConsumer &IdxCtx) {
612 Preprocessor &PP = Unit.getPreprocessor();
618 bool isModuleFile = Unit.isModuleFile();
619 for (PreprocessedEntity *PPE : Unit.getLocalPreprocessingEntities()) {
624 if (isModuleFile && Unit.isInMainFileID(Loc))
660 ASTUnit *Unit = cxtu::getASTUnit(TU);
661 if (!Unit)
664 ASTUnit::ConcurrencyCheck Check(*Unit);
666 if (const FileEntry *PCHFile = Unit->getPCHFile())
669 FileManager &FileMgr = Unit->getFileManager();
671 if (Unit->getOriginalSourceFileName().empty())
674 DataConsumer->enteredMainFile(FileMgr.getFile(Unit->getOriginalSourceFileName()));
676 DataConsumer->setASTContext(Unit->getASTContext());
679 indexPreprocessingRecord(*Unit, *DataConsumer);
680 indexASTUnit(*Unit, DataConsumer, getIndexingOptionsFromCXOptions(index_options));