Lines Matching refs:Unit
106 /// the translation unit.
253 ASTUnit *Unit = cxtu::getASTUnit(TU);
254 SourceManager &SM = Unit->getSourceManager();
302 ASTUnit *Unit = cxtu::getASTUnit(TU);
303 SourceManager &SM = Unit->getSourceManager();
307 Unit->findFileRegionDecls(File, Offset, Length, Decls);
327 Unit->findFileRegionDecls(File, Offset, Length, Decls);
373 // is a context that contains the range or we reach the translation unit
3167 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCommandLine(
3180 if (!Unit && !ErrUnit)
3184 // Make sure to check that 'Unit' is non-NULL.
3186 printDiagsToStderr(Unit ? Unit.get() : ErrUnit.get());
3189 if (isASTReadError(Unit ? Unit.get() : ErrUnit.get()))
3192 *out_TU = MakeCXTranslationUnit(CXXIdx, Unit.release());
3347 // If the translation unit has been marked as unsafe to free, just discard
3349 ASTUnit *Unit = cxtu::getASTUnit(CTUnit);
3350 if (Unit && Unit->isUnsafeToFree())
5912 // macro arguments can have arbitrary translation-unit source order, we do not
6983 ASTUnit &Unit = *cxtu::getASTUnit(TU);
6984 HeaderSearch &HS = Unit.getPreprocessor().getHeaderSearchInfo();
7388 void cxindex::printDiagsToStderr(ASTUnit *Unit) {
7389 if (!Unit)
7392 for (ASTUnit::stored_diag_iterator D = Unit->stored_diag_begin(),
7393 DEnd = Unit->stored_diag_end();
7395 CXStoredDiagnostic Diag(*D, Unit->getLangOpts());
7417 ASTUnit *Unit = cxtu::getASTUnit(TU);
7418 Preprocessor &PP = Unit->getPreprocessor();
7454 ASTUnit *Unit = cxtu::getASTUnit(TU);
7457 SourceManager &SM = Unit->getSourceManager();
7463 Preprocessor &PP = Unit->getPreprocessor();
7491 ASTUnit *Unit = cxtu::getASTUnit(TU);
7492 Preprocessor &PP = Unit->getPreprocessor();
7495 Loc = Unit->getSourceManager().getSpellingLoc(Loc);
7513 if (ASTUnit *Unit = cxtu::getASTUnit(TU)) {
7514 LogOS << '<' << Unit->getMainFileName() << '>';
7515 if (Unit->isMainFileAST())
7516 LogOS << " (" << Unit->getASTFileName() << ')';