Lines Matching refs:CXXUnit
516 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in VisitChildren() local
521 if (!CXXUnit->isMainFileAST() && CXXUnit->getOnlyLocalDecls() && in VisitChildren()
523 for (ASTUnit::top_level_iterator TL = CXXUnit->top_level_begin(), in VisitChildren()
524 TLEnd = CXXUnit->top_level_end(); in VisitChildren()
532 CXXUnit->getASTContext().getTranslationUnitDecl())) in VisitChildren()
538 if (CXXUnit->getPreprocessor().getPreprocessingRecord()) in VisitChildren()
3723 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_saveTranslationUnit() local
3724 ASTUnit::ConcurrencyCheck Check(*CXXUnit); in clang_saveTranslationUnit()
3725 if (!CXXUnit->hasSema()) in clang_saveTranslationUnit()
3733 if (!CXXUnit->getDiagnostics().hasUnrecoverableErrorOccurred() || in clang_saveTranslationUnit()
3802 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_reparseTranslationUnit_Impl() local
3803 ASTUnit::ConcurrencyCheck Check(*CXXUnit); in clang_reparseTranslationUnit_Impl()
3818 if (!CXXUnit->Reparse(CXXIdx->getPCHContainerOperations(), in clang_reparseTranslationUnit_Impl()
3821 if (isASTReadError(CXXUnit)) in clang_reparseTranslationUnit_Impl()
3867 ASTUnit *CXXUnit = cxtu::getASTUnit(CTUnit); in clang_getTranslationUnitSpelling() local
3868 return cxstring::createDup(CXXUnit->getOriginalSourceFileName()); in clang_getTranslationUnitSpelling()
3877 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_getTranslationUnitCursor() local
3878 return MakeCXCursor(CXXUnit->getASTContext().getTranslationUnitDecl(), TU); in clang_getTranslationUnitCursor()
3910 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_getFile() local
3912 FileManager &FMgr = CXXUnit->getFileManager(); in clang_getFile()
3926 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_isFileMultipleIncludeGuarded() local
3928 return CXXUnit->getPreprocessor().getHeaderSearchInfo() in clang_isFileMultipleIncludeGuarded()
5012 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_getCursor() local
5013 ASTUnit::ConcurrencyCheck Check(*CXXUnit); in clang_getCursor()
5292 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in getCursor() local
5296 SLoc = Lexer::GetBeginningOfToken(SLoc, CXXUnit->getSourceManager(), in getCursor()
5297 CXXUnit->getASTContext().getLangOpts()); in getCursor()
5301 GetCursorData ResultData(CXXUnit->getSourceManager(), SLoc, Result); in getCursor()
5990 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_getTokenSpelling() local
5991 if (!CXXUnit) in clang_getTokenSpelling()
5996 = CXXUnit->getSourceManager().getDecomposedSpellingLoc(Loc); in clang_getTokenSpelling()
5999 = CXXUnit->getSourceManager().getBufferData(LocInfo.first, &Invalid); in clang_getTokenSpelling()
6012 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_getTokenLocation() local
6013 if (!CXXUnit) in clang_getTokenLocation()
6016 return cxloc::translateSourceLocation(CXXUnit->getASTContext(), in clang_getTokenLocation()
6026 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_getTokenExtent() local
6027 if (!CXXUnit) in clang_getTokenExtent()
6030 return cxloc::translateSourceRange(CXXUnit->getASTContext(), in clang_getTokenExtent()
6034 static void getTokens(ASTUnit *CXXUnit, SourceRange Range, in getTokens() argument
6036 SourceManager &SourceMgr = CXXUnit->getSourceManager(); in getTokens()
6054 CXXUnit->getASTContext().getLangOpts(), in getTokens()
6083 = CXXUnit->getPreprocessor().LookUpIdentifierInfo(Tok); in getTokens()
6122 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_tokenize() local
6123 if (!CXXUnit || !Tokens || !NumTokens) in clang_tokenize()
6126 ASTUnit::ConcurrencyCheck Check(*CXXUnit); in clang_tokenize()
6133 getTokens(CXXUnit, R, CXTokens); in clang_tokenize()
6610 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in annotatePreprocessorTokens() local
6612 Preprocessor &PP = CXXUnit->getPreprocessor(); in annotatePreprocessorTokens()
6613 SourceManager &SourceMgr = CXXUnit->getSourceManager(); in annotatePreprocessorTokens()
6629 CXXUnit->getASTContext().getLangOpts(), in annotatePreprocessorTokens()
6666 CXXUnit->mapLocationToPreamble(Tok.getLocation()); in annotatePreprocessorTokens()
6681 Tok.setLocation(CXXUnit->mapLocationToPreamble(SaveLoc)); in annotatePreprocessorTokens()
6709 static void clang_annotateTokensImpl(CXTranslationUnit TU, ASTUnit *CXXUnit, in clang_annotateTokensImpl() argument
6731 SourceManager &SM = CXXUnit->getSourceManager(); in clang_annotateTokensImpl()
6738 if (CXXUnit->getPreprocessor().getPreprocessingRecord()) { in clang_annotateTokensImpl()
6740 MarkMacroArgTokensVisitor Visitor(CXXUnit->getSourceManager(), in clang_annotateTokensImpl()
6843 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_annotateTokens() local
6844 if (!CXXUnit) in clang_annotateTokens()
6847 ASTUnit::ConcurrencyCheck Check(*CXXUnit); in clang_annotateTokens()
6850 clang_annotateTokensImpl(TU, CXXUnit, Tokens, NumTokens, Cursors); in clang_annotateTokens()