Home | History | Annotate | Download | only in libclang

Lines Matching defs:Unit

82 /// the translation unit.
230 ASTUnit *Unit = cxtu::getASTUnit(TU);
231 SourceManager &SM = Unit->getSourceManager();
279 ASTUnit *Unit = cxtu::getASTUnit(TU);
280 SourceManager &SM = Unit->getSourceManager();
284 Unit->findFileRegionDecls(File, Offset, Length, Decls);
304 Unit->findFileRegionDecls(File, Offset, Length, Decls);
350 // is a context that contains the range or we reach the translation unit
2670 OwningPtr<ASTUnit> Unit(
2692 // Make sure to check that 'Unit' is non-NULL.
2694 printDiagsToStderr(Unit ? Unit.get() : ErrUnit.get());
2697 PTUI->result = MakeCXTranslationUnit(CXXIdx, Unit.take());
2821 // If the translation unit has been marked as unsafe to free, just discard
5070 // macro arguments can have arbitrary translation-unit source order, we do not
6275 void cxindex::printDiagsToStderr(ASTUnit *Unit) {
6276 if (!Unit)
6279 for (ASTUnit::stored_diag_iterator D = Unit->stored_diag_begin(),
6280 DEnd = Unit->stored_diag_end();
6282 CXStoredDiagnostic Diag(*D, Unit->getASTContext().getLangOpts());
6304 ASTUnit *Unit = cxtu::getASTUnit(TU);
6305 Preprocessor &PP = Unit->getPreprocessor();
6339 ASTUnit *Unit = cxtu::getASTUnit(TU);
6342 SourceManager &SM = Unit->getSourceManager();
6348 Preprocessor &PP = Unit->getPreprocessor();
6377 ASTUnit *Unit = cxtu::getASTUnit(TU);
6378 Preprocessor &PP = Unit->getPreprocessor();
6381 Loc = Unit->getSourceManager().getSpellingLoc(Loc);
6399 if (ASTUnit *Unit = cxtu::getASTUnit(TU)) {
6400 LogOS << '<' << Unit->getMainFileName() << '>';
6401 if (Unit->isMainFileAST())
6402 LogOS << " (" << Unit->getASTFileName() << ')';