Home | History | Annotate | Download | only in libclang

Lines Matching refs:CXXUnit

519     ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
524 if (!CXXUnit->isMainFileAST() && CXXUnit->getOnlyLocalDecls() &&
526 for (ASTUnit::top_level_iterator TL = CXXUnit->top_level_begin(),
527 TLEnd = CXXUnit->top_level_end();
533 CXXUnit->getASTContext().getTranslationUnitDecl()))
539 if (CXXUnit->getPreprocessor().getPreprocessingRecord())
3305 ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
3306 ASTUnit::ConcurrencyCheck Check(*CXXUnit);
3307 if (!CXXUnit->hasSema())
3315 if (!CXXUnit->getDiagnostics().hasUnrecoverableErrorOccurred() ||
3384 ASTUnit *CXXUnit
3385 ASTUnit::ConcurrencyCheck Check(*CXXUnit);
3400 if (!CXXUnit->Reparse(CXXIdx->getPCHContainerOperations(),
3403 if (isASTReadError(CXXUnit))
3449 ASTUnit *CXXUnit = cxtu::getASTUnit(CTUnit);
3450 return cxstring::createDup(CXXUnit->getOriginalSourceFileName());
3459 ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
3460 return MakeCXCursor(CXXUnit->getASTContext().getTranslationUnitDecl(), TU);
3492 ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
3494 FileManager &FMgr = CXXUnit->getFileManager();
3508 ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
3510 return CXXUnit->getPreprocessor().getHeaderSearchInfo()
4647 ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
4648 ASTUnit::ConcurrencyCheck Check(*CXXUnit);
4927 ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
4931 SLoc = Lexer::GetBeginningOfToken(SLoc, CXXUnit->getSourceManager(),
4932 CXXUnit->getASTContext().getLangOpts());
4936 GetCursorData ResultData(CXXUnit->getSourceManager(), SLoc, Result);
5617 ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
5618 if (!CXXUnit)
5623 = CXXUnit->getSourceManager().getDecomposedSpellingLoc(Loc);
5626 = CXXUnit->getSourceManager().getBufferData(LocInfo.first, &Invalid);
5639 ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
5640 if (!CXXUnit)
5643 return cxloc::translateSourceLocation(CXXUnit->getASTContext(),
5653 ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
5654 if (!CXXUnit)
5657 return cxloc::translateSourceRange(CXXUnit->getASTContext(),
5661 static void getTokens(ASTUnit *CXXUnit, SourceRange Range,
5663 SourceManager &SourceMgr = CXXUnit->getSourceManager();
5681 CXXUnit->getASTContext().getLangOpts(),
5710 = CXXUnit->getPreprocessor().LookUpIdentifierInfo(Tok);
5749 ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
5750 if (!CXXUnit || !Tokens || !NumTokens)
5753 ASTUnit::ConcurrencyCheck Check(*CXXUnit);
5760 getTokens(CXXUnit, R, CXTokens);
6240 ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
6242 Preprocessor &PP = CXXUnit->getPreprocessor();
6243 SourceManager &SourceMgr = CXXUnit->getSourceManager();
6259 CXXUnit->getASTContext().getLangOpts(),
6296 CXXUnit->mapLocationToPreamble(Tok.getLocation());
6311 Tok.setLocation(CXXUnit->mapLocationToPreamble(SaveLoc));
6339 static void clang_annotateTokensImpl(CXTranslationUnit TU, ASTUnit *CXXUnit,
6361 SourceManager &SM = CXXUnit->getSourceManager();
6368 if (CXXUnit->getPreprocessor().getPreprocessingRecord()) {
6370 MarkMacroArgTokensVisitor Visitor(CXXUnit->getSourceManager(),
6472 ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
6473 if (!CXXUnit)
6476 ASTUnit::ConcurrencyCheck Check(*CXXUnit);
6479 clang_annotateTokensImpl(TU, CXXUnit, Tokens, NumTokens, Cursors);