Lines Matching refs:TU

100   if (TU)  in ~CXTUOwner()
101 clang_disposeTranslationUnit(TU); in ~CXTUOwner()
252 ASTUnit *Unit = cxtu::getASTUnit(TU); in visitFileRegion()
301 ASTUnit *Unit = cxtu::getASTUnit(TU); in visitDeclsFromFileRegion()
364 if (Visit(MakeCXCursor(D, TU, Range), /*CheckedRegionOfInterest=*/true)) in visitDeclsFromFileRegion()
384 if (Visit(MakeCXCursor(D, TU, Range), /*CheckedRegionOfInterest=*/true)) in visitDeclsFromFileRegion()
455 if (Visit(MakeMacroExpansionCursor(ME, TU))) in visitPreprocessedEntities()
462 if (Visit(MakeMacroDefinitionCursor(MD, TU))) in visitPreprocessedEntities()
469 if (Visit(MakeInclusionDirectiveCursor(ID, TU))) in visitPreprocessedEntities()
517 CXTranslationUnit TU = getCursorTU(Cursor); in VisitChildren() local
518 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in VisitChildren()
528 if (Visit(MakeCXCursor(*TL, TU, RegionOfInterest), true)) in VisitChildren()
559 A->getInterfaceLoc()->getTypeLoc().getLocStart(), TU)); in VisitChildren()
570 getMacroInfo(cxcursor::getCursorMacroDefinition(Cursor), TU); in VisitChildren()
572 checkForMacroInMacroDefinition(MI, Loc, TU)) in VisitChildren()
573 return Visit(cxcursor::MakeMacroExpansionCursor(MacroDef, BeginLoc, TU)); in VisitChildren()
586 return Visit(MakeCXCursor(Body, StmtParent, TU, RegionOfInterest)); in VisitBlockDecl()
626 CXCursor Cursor = MakeCXCursor(D, TU, RegionOfInterest); in VisitDeclContext()
643 Cursor = MakeCursorObjCClassRef(ID, ID->getLocation(), TU); in VisitDeclContext()
648 Cursor = MakeCursorObjCProtocolRef(PD, PD->getLocation(), TU); in VisitDeclContext()
748 return Visit(MakeCXCursor(Init, StmtParent, TU, RegionOfInterest)); in VisitEnumConstantDecl()
838 Init->getMemberLocation(), TU))) in VisitFunctionDecl()
847 if (Visit(MakeCXCursor(Initializer, ND, TU, RegionOfInterest))) in VisitFunctionDecl()
852 if (Visit(MakeCXCursor(ND->getBody(), StmtParent, TU, RegionOfInterest))) in VisitFunctionDecl()
864 return Visit(MakeCXCursor(BitWidth, StmtParent, TU, RegionOfInterest)); in VisitFieldDecl()
874 return Visit(MakeCXCursor(Init, StmtParent, TU, RegionOfInterest)); in VisitVarDecl()
885 return Visit(MakeCXCursor(DefArg, StmtParent, TU, RegionOfInterest)); in VisitNonTypeTemplateParmDecl()
925 if (Visit(MakeCXCursor(P, TU, RegionOfInterest))) in VisitObjCMethodDecl()
930 Visit(MakeCXCursor(ND->getBody(), StmtParent, TU, RegionOfInterest))) in VisitObjCMethodDecl()
1007 CXCursor Cursor = MakeCXCursor(*I, TU, RegionOfInterest); in VisitObjCContainerDecl()
1021 TU))) in VisitObjCCategoryDecl()
1027 if (Visit(MakeCursorObjCProtocolRef(*I, *PL, TU))) in VisitObjCCategoryDecl()
1035 return Visit(MakeCursorObjCProtocolRef(PID, PID->getLocation(), TU)); in VisitObjCProtocolDecl()
1040 if (Visit(MakeCursorObjCProtocolRef(*I, *PL, TU))) in VisitObjCProtocolDecl()
1072 if (Visit(MakeCXCursor(MD, TU, RegionOfInterest))) in VisitObjCPropertyDecl()
1077 if (Visit(MakeCXCursor(MD, TU, RegionOfInterest))) in VisitObjCPropertyDecl()
1086 return Visit(MakeCursorObjCClassRef(D, D->getLocation(), TU)); in VisitObjCInterfaceDecl()
1093 TU))) in VisitObjCInterfaceDecl()
1099 if (Visit(MakeCursorObjCProtocolRef(*I, *PL, TU))) in VisitObjCInterfaceDecl()
1112 if (Visit(MakeCursorObjCClassRef(ID, D->getLocation(), TU))) in VisitObjCCategoryImplDecl()
1125 TU))) in VisitObjCImplementationDecl()
1135 return Visit(MakeCursorMemberRef(Ivar, PD->getPropertyIvarDeclLoc(), TU)); in VisitObjCPropertyImplDecl()
1151 D->getTargetNameLoc(), TU)); in VisitNamespaceAliasDecl()
1161 if (Visit(MakeCursorOverloadedDeclRef(D, D->getLocation(), TU))) in VisitUsingDecl()
1174 D->getIdentLocation(), TU)); in VisitUsingDirectiveDecl()
1238 TU)); in VisitNestedNameSpecifier()
1242 Range.getBegin(), TU)); in VisitNestedNameSpecifier()
1250 return Visit(MakeCursorTypeRef(Typedef->getDecl(), Range.getBegin(), TU)); in VisitNestedNameSpecifier()
1252 return Visit(MakeCursorTypeRef(Tag->getDecl(), Range.getBegin(), TU)); in VisitNestedNameSpecifier()
1282 TU))) in VisitNestedNameSpecifierLoc()
1290 TU))) in VisitNestedNameSpecifierLoc()
1320 if (Visit(MakeCXCursor(*P, TU, RegionOfInterest))) in VisitTemplateParameters()
1330 return Visit(MakeCursorTemplateRef(Name.getAsTemplateDecl(), Loc, TU)); in VisitTemplateName()
1334 if (Visit(MakeCursorOverloadedDeclRef(Name, Loc, TU))) in VisitTemplateName()
1347 Loc, TU)); in VisitTemplateName()
1352 Loc, TU)); in VisitTemplateName()
1357 Loc, TU)); in VisitTemplateName()
1377 return Visit(MakeCXCursor(E, StmtParent, TU, RegionOfInterest)); in VisitTemplateArgumentLoc()
1382 return Visit(MakeCXCursor(E, StmtParent, TU, RegionOfInterest)); in VisitTemplateArgumentLoc()
1387 return Visit(MakeCXCursor(E, StmtParent, TU, RegionOfInterest)); in VisitTemplateArgumentLoc()
1453 TU)); in VisitBuiltinTypeLoc()
1460 return Visit(MakeCursorTypeRef(TL.getTypedefNameDecl(), TL.getNameLoc(), TU)); in VisitTypedefTypeLoc()
1464 return Visit(MakeCursorTypeRef(TL.getDecl(), TL.getNameLoc(), TU)); in VisitUnresolvedUsingTypeLoc()
1469 return Visit(MakeCXCursor(TL.getDecl(), TU, RegionOfInterest)); in VisitTagTypeLoc()
1471 return Visit(MakeCursorTypeRef(TL.getDecl(), TL.getNameLoc(), TU)); in VisitTagTypeLoc()
1475 return Visit(MakeCursorTypeRef(TL.getDecl(), TL.getNameLoc(), TU)); in VisitTemplateTypeParmTypeLoc()
1479 if (Visit(MakeCursorObjCClassRef(TL.getIFaceDecl(), TL.getNameLoc(), TU))) in VisitObjCInterfaceTypeLoc()
1491 TU))) in VisitObjCObjectTypeLoc()
1537 if (Visit(MakeCXCursor(D, TU, RegionOfInterest))) in VisitFunctionTypeLoc()
1548 return Visit(MakeCXCursor(Size, StmtParent, TU, RegionOfInterest)); in VisitArrayTypeLoc()
1577 return Visit(MakeCXCursor(TL.getUnderlyingExpr(), StmtParent, TU)); in VisitTypeOfExprTypeLoc()
1629 return Visit(MakeCXCursor(E, StmtParent, TU)); in VisitDecltypeTypeLoc()
1635 return Visit(MakeCursorTypeRef(TL.getDecl(), TL.getNameLoc(), TU)); in VisitInjectedClassNameTypeLoc()
1671 if (Visit(cxcursor::MakeCursorCXXBaseSpecifier(&I, TU))) in DEFAULT_TYPELOC_IMPL()
1681 if (Visit(MakeCXCursor(I, D, TU))) in VisitAttributes()
2501 EnqueueVisitor(WL, MakeCXCursor(S, StmtParent, TU,RegionOfInterest)).Visit(S); in EnqueueWorkList()
2528 if (Visit(MakeCXCursor(D, TU, RegionOfInterest, in RunVisitorWorkList()
2555 TU))) { in RunVisitorWorkList()
2577 if (Visit(MakeCursorMemberRef(V->get(), V->getLoc(), TU))) in RunVisitorWorkList()
2587 CXCursor Cursor = MakeCXCursor(S, StmtParent, TU, RegionOfInterest); in RunVisitorWorkList()
2646 if (Visit(MakeCursorOverloadedDeclRef(O, TU))) in RunVisitorWorkList()
2655 E->getPackLoc(), TU))) in RunVisitorWorkList()
2663 E->getPackLoc(), TU))) in RunVisitorWorkList()
2686 TU))) in RunVisitorWorkList()
2702 if (Visit(MakeCXCursor(Proto.getParam(I), TU))) in RunVisitorWorkList()
2857 CXTranslationUnit TU; in clang_createTranslationUnit() local
2859 clang_createTranslationUnit2(CIdx, ast_filename, &TU); in clang_createTranslationUnit()
2861 assert((TU && Result == CXError_Success) || in clang_createTranslationUnit()
2862 (!TU && Result != CXError_Success)); in clang_createTranslationUnit()
2863 return TU; in clang_createTranslationUnit()
3053 CXTranslationUnit TU; in clang_parseTranslationUnit() local
3056 unsaved_files, num_unsaved_files, options, &TU); in clang_parseTranslationUnit()
3058 assert((TU && Result == CXError_Success) || in clang_parseTranslationUnit()
3059 (!TU && Result != CXError_Success)); in clang_parseTranslationUnit()
3060 return TU; in clang_parseTranslationUnit()
3116 if (CXTranslationUnit *TU = PTUI.out_TU) in clang_parseTranslationUnit2() local
3117 PrintLibclangResourceUsage(*TU); in clang_parseTranslationUnit2()
3123 unsigned clang_defaultSaveOptions(CXTranslationUnit TU) { in clang_defaultSaveOptions() argument
3130 CXTranslationUnit TU; member
3142 CIndexer *CXXIdx = STUI->TU->CIdx; in clang_saveTranslationUnit_Impl()
3146 bool hadError = cxtu::getASTUnit(STUI->TU)->Save(STUI->FileName); in clang_saveTranslationUnit_Impl()
3150 int clang_saveTranslationUnit(CXTranslationUnit TU, const char *FileName, in clang_saveTranslationUnit() argument
3153 *Log << TU << ' ' << FileName; in clang_saveTranslationUnit()
3156 if (isNotUsableTU(TU)) { in clang_saveTranslationUnit()
3157 LOG_BAD_TU(TU); in clang_saveTranslationUnit()
3161 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_saveTranslationUnit()
3166 SaveTranslationUnitInfo STUI = { TU, FileName, options, CXSaveError_None }; in clang_saveTranslationUnit()
3173 PrintLibclangResourceUsage(TU); in clang_saveTranslationUnit()
3192 PrintLibclangResourceUsage(TU); in clang_saveTranslationUnit()
3215 unsigned clang_defaultReparseOptions(CXTranslationUnit TU) { in clang_defaultReparseOptions() argument
3220 CXTranslationUnit TU; member
3229 CXTranslationUnit TU = RTUI->TU; in clang_reparseTranslationUnit_Impl() local
3234 if (isNotUsableTU(TU)) { in clang_reparseTranslationUnit_Impl()
3235 LOG_BAD_TU(TU); in clang_reparseTranslationUnit_Impl()
3241 delete static_cast<CXDiagnosticSetImpl*>(TU->Diagnostics); in clang_reparseTranslationUnit_Impl()
3242 TU->Diagnostics = nullptr; in clang_reparseTranslationUnit_Impl()
3244 CIndexer *CXXIdx = TU->CIdx; in clang_reparseTranslationUnit_Impl()
3248 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_reparseTranslationUnit_Impl()
3270 int clang_reparseTranslationUnit(CXTranslationUnit TU, in clang_reparseTranslationUnit() argument
3275 *Log << TU; in clang_reparseTranslationUnit()
3283 TU, llvm::makeArrayRef(unsaved_files, num_unsaved_files), options, in clang_reparseTranslationUnit()
3295 cxtu::getASTUnit(TU)->setUnsafeToFree(true); in clang_reparseTranslationUnit()
3298 PrintLibclangResourceUsage(TU); in clang_reparseTranslationUnit()
3314 CXCursor clang_getTranslationUnitCursor(CXTranslationUnit TU) { in clang_getTranslationUnitCursor() argument
3315 if (isNotUsableTU(TU)) { in clang_getTranslationUnitCursor()
3316 LOG_BAD_TU(TU); in clang_getTranslationUnitCursor()
3320 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_getTranslationUnitCursor()
3321 return MakeCXCursor(CXXUnit->getASTContext().getTranslationUnitDecl(), TU); in clang_getTranslationUnitCursor()
3347 CXFile clang_getFile(CXTranslationUnit TU, const char *file_name) { in clang_getFile() argument
3348 if (isNotUsableTU(TU)) { in clang_getFile()
3349 LOG_BAD_TU(TU); in clang_getFile()
3353 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_getFile()
3359 unsigned clang_isFileMultipleIncludeGuarded(CXTranslationUnit TU, in clang_isFileMultipleIncludeGuarded() argument
3361 if (isNotUsableTU(TU)) { in clang_isFileMultipleIncludeGuarded()
3362 LOG_BAD_TU(TU); in clang_isFileMultipleIncludeGuarded()
3369 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_isFileMultipleIncludeGuarded()
4389 CXCursor clang_getCursor(CXTranslationUnit TU, CXSourceLocation Loc) { in clang_getCursor() argument
4390 if (isNotUsableTU(TU)) { in clang_getCursor()
4391 LOG_BAD_TU(TU); in clang_getCursor()
4395 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_getCursor()
4399 CXCursor Result = cxcursor::getCursor(TU, SLoc); in clang_getCursor()
4667 CXCursor cxcursor::getCursor(CXTranslationUnit TU, SourceLocation SLoc) { in getCursor() argument
4668 assert(TU); in getCursor()
4675 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in getCursor()
4685 CursorVisitor CursorVis(TU, GetCursorVisitor, &ResultData, in getCursor()
4750 ASTUnit *TU = getCursorASTUnit(C); in getRawCursorExtent() local
4752 return TU->mapRangeFromPreamble(Range); in getRawCursorExtent()
4756 ASTUnit *TU = getCursorASTUnit(C); in getRawCursorExtent() local
4758 return TU->mapRangeFromPreamble(Range); in getRawCursorExtent()
4762 ASTUnit *TU = getCursorASTUnit(C); in getRawCursorExtent() local
4764 return TU->mapRangeFromPreamble(Range); in getRawCursorExtent()
4768 ASTUnit *TU = getCursorASTUnit(C); in getRawCursorExtent() local
4769 FileID MainID = TU->getSourceManager().getMainFileID(); in getRawCursorExtent()
4770 SourceLocation Start = TU->getSourceManager().getLocForStartOfFile(MainID); in getRawCursorExtent()
4771 SourceLocation End = TU->getSourceManager().getLocForEndOfFile(MainID); in getRawCursorExtent()
4961 CXTranslationUnit TU = getCursorTU(C); in clang_getCursorDefinition() local
5026 TU); in clang_getCursorDefinition()
5029 return MakeCXCursor(cast<NamespaceAliasDecl>(D)->getNamespace(), TU); in clang_getCursorDefinition()
5037 return MakeCXCursor(Def, TU); in clang_getCursorDefinition()
5047 return MakeCXCursor(Def, TU); in clang_getCursorDefinition()
5056 return MakeCXCursor(Def, TU); in clang_getCursorDefinition()
5063 return MakeCXCursor(Def->getDescribedFunctionTemplate(), TU); in clang_getCursorDefinition()
5071 TU); in clang_getCursorDefinition()
5078 return MakeCXCursor(cast<VarDecl>(Def)->getDescribedVarTemplate(), TU); in clang_getCursorDefinition()
5084 D->getLocation(), TU); in clang_getCursorDefinition()
5089 TU)); in clang_getCursorDefinition()
5105 return MakeCXCursor(Def, TU); in clang_getCursorDefinition()
5113 return MakeCXCursor(Impl, TU); in clang_getCursorDefinition()
5118 return MakeCXCursor(Def, TU); in clang_getCursorDefinition()
5130 return MakeCXCursor(Def, TU); in clang_getCursorDefinition()
5132 return MakeCXCursor(Impl, TU); in clang_getCursorDefinition()
5145 return MakeCXCursor(Def, TU); in clang_getCursorDefinition()
5151 return clang_getCursorDefinition(MakeCXCursor(Friend, TU)); in clang_getCursorDefinition()
5156 return clang_getCursorDefinition(MakeCXCursor(Friend, TU)); in clang_getCursorDefinition()
5219 CXTranslationUnit TU = getCursorTU(cursor); in clang_getOverloadedDecl() local
5222 return MakeCXCursor(E->decls_begin()[index], TU); in clang_getOverloadedDecl()
5226 return MakeCXCursor(S->begin()[index], TU); in clang_getOverloadedDecl()
5233 return MakeCXCursor(cast<UsingShadowDecl>(*Pos)->getTargetDecl(), TU); in clang_getOverloadedDecl()
5336 CXString clang_getTokenSpelling(CXTranslationUnit TU, CXToken CXTok) { in clang_getTokenSpelling() argument
5355 if (isNotUsableTU(TU)) { in clang_getTokenSpelling()
5356 LOG_BAD_TU(TU); in clang_getTokenSpelling()
5362 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_getTokenSpelling()
5378 CXSourceLocation clang_getTokenLocation(CXTranslationUnit TU, CXToken CXTok) { in clang_getTokenLocation() argument
5379 if (isNotUsableTU(TU)) { in clang_getTokenLocation()
5380 LOG_BAD_TU(TU); in clang_getTokenLocation()
5384 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_getTokenLocation()
5392 CXSourceRange clang_getTokenExtent(CXTranslationUnit TU, CXToken CXTok) { in clang_getTokenExtent() argument
5393 if (isNotUsableTU(TU)) { in clang_getTokenExtent()
5394 LOG_BAD_TU(TU); in clang_getTokenExtent()
5398 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_getTokenExtent()
5478 void clang_tokenize(CXTranslationUnit TU, CXSourceRange Range, in clang_tokenize() argument
5481 *Log << TU << ' ' << Range; in clang_tokenize()
5489 if (isNotUsableTU(TU)) { in clang_tokenize()
5490 LOG_BAD_TU(TU); in clang_tokenize()
5494 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_tokenize()
5515 void clang_disposeTokens(CXTranslationUnit TU, in clang_disposeTokens() argument
5578 CXTranslationUnit TU, SourceRange RegionOfInterest) in AnnotateTokensWorker() argument
5581 AnnotateVis(TU, in AnnotateTokensWorker()
5588 SrcMgr(cxtu::getASTUnit(TU)->getSourceManager()), in AnnotateTokensWorker()
5967 CXTranslationUnit TU; member
5990 static void annotatePreprocessorTokens(CXTranslationUnit TU, in annotatePreprocessorTokens() argument
5995 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in annotatePreprocessorTokens()
6052 MI = getMacroInfo(II, MappedTokLoc, TU); in annotatePreprocessorTokens()
6067 MacroDefinition *MacroDef = checkForMacroInMacroDefinition(MI,Tok,TU); in annotatePreprocessorTokens()
6071 Tok.getLocation(), TU); in annotatePreprocessorTokens()
6080 MakePreprocessingDirectiveCursor(SourceRange(BeginLoc, EndLoc), TU); in annotatePreprocessorTokens()
6094 CXTranslationUnit TU = ((clang_annotateTokens_Data*)UserData)->TU; in clang_annotateTokensImpl() local
6100 CIndexer *CXXIdx = TU->CIdx; in clang_annotateTokensImpl()
6107 cxloc::translateSourceLocation(clang_getTokenLocation(TU, Tokens[0]))); in clang_annotateTokensImpl()
6109 cxloc::translateSourceLocation(clang_getTokenLocation(TU, in clang_annotateTokensImpl()
6114 annotatePreprocessorTokens(TU, RegionOfInterest, Cursors, Tokens, NumTokens); in clang_annotateTokensImpl()
6130 CursorVisitor MacroArgMarker(TU, in clang_annotateTokensImpl()
6140 AnnotateTokensWorker W(Tokens, Cursors, NumTokens, TU, RegionOfInterest); in clang_annotateTokensImpl()
6206 void clang_annotateTokens(CXTranslationUnit TU, in clang_annotateTokens() argument
6209 if (isNotUsableTU(TU)) { in clang_annotateTokens()
6210 LOG_BAD_TU(TU); in clang_annotateTokens()
6219 *Log << TU << ' '; in clang_annotateTokens()
6220 CXSourceLocation bloc = clang_getTokenLocation(TU, Tokens[0]); in clang_annotateTokens()
6221 CXSourceLocation eloc = clang_getTokenLocation(TU, Tokens[NumTokens-1]); in clang_annotateTokens()
6230 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_annotateTokens()
6236 clang_annotateTokens_Data data = { TU, CXXUnit, Tokens, NumTokens, Cursors }; in clang_annotateTokens()
6711 CXModule clang_getModuleForFile(CXTranslationUnit TU, CXFile File) { in clang_getModuleForFile() argument
6712 if (isNotUsableTU(TU)) { in clang_getModuleForFile()
6713 LOG_BAD_TU(TU); in clang_getModuleForFile()
6720 ASTUnit &Unit = *cxtu::getASTUnit(TU); in clang_getModuleForFile()
6762 unsigned clang_Module_getNumTopLevelHeaders(CXTranslationUnit TU, in clang_Module_getNumTopLevelHeaders() argument
6764 if (isNotUsableTU(TU)) { in clang_Module_getNumTopLevelHeaders()
6765 LOG_BAD_TU(TU); in clang_Module_getNumTopLevelHeaders()
6771 FileManager &FileMgr = cxtu::getASTUnit(TU)->getFileManager(); in clang_Module_getNumTopLevelHeaders()
6776 CXFile clang_Module_getTopLevelHeader(CXTranslationUnit TU, in clang_Module_getTopLevelHeader() argument
6778 if (isNotUsableTU(TU)) { in clang_Module_getTopLevelHeader()
6779 LOG_BAD_TU(TU); in clang_Module_getTopLevelHeader()
6785 FileManager &FileMgr = cxtu::getASTUnit(TU)->getFileManager(); in clang_Module_getTopLevelHeader()
6922 CXTUResourceUsage clang_getCXTUResourceUsage(CXTranslationUnit TU) { in clang_getCXTUResourceUsage() argument
6923 if (isNotUsableTU(TU)) { in clang_getCXTUResourceUsage()
6924 LOG_BAD_TU(TU); in clang_getCXTUResourceUsage()
6929 ASTUnit *astUnit = cxtu::getASTUnit(TU); in clang_getCXTUResourceUsage()
7020 CXSourceRangeList *clang_getSkippedRanges(CXTranslationUnit TU, CXFile file) { in clang_getSkippedRanges() argument
7025 if (isNotUsableTU(TU)) { in clang_getSkippedRanges()
7026 LOG_BAD_TU(TU); in clang_getSkippedRanges()
7033 ASTUnit *astUnit = cxtu::getASTUnit(TU); in clang_getSkippedRanges()
7068 void clang::PrintLibclangResourceUsage(CXTranslationUnit TU) { in PrintLibclangResourceUsage() argument
7069 CXTUResourceUsage Usage = clang_getCXTUResourceUsage(TU); in PrintLibclangResourceUsage()
7139 CXTranslationUnit TU){ in getMacroInfo() argument
7140 if (MacroDefLoc.isInvalid() || !TU) in getMacroInfo()
7145 ASTUnit *Unit = cxtu::getASTUnit(TU); in getMacroInfo()
7160 CXTranslationUnit TU) { in getMacroInfo() argument
7161 if (!MacroDef || !TU) in getMacroInfo()
7167 return getMacroInfo(*II, MacroDef->getLocation(), TU); in getMacroInfo()
7172 CXTranslationUnit TU) { in checkForMacroInMacroDefinition() argument
7173 if (!MI || !TU) in checkForMacroInMacroDefinition()
7182 ASTUnit *Unit = cxtu::getASTUnit(TU); in checkForMacroInMacroDefinition()
7213 CXTranslationUnit TU) { in checkForMacroInMacroDefinition() argument
7214 if (Loc.isInvalid() || !MI || !TU) in checkForMacroInMacroDefinition()
7219 ASTUnit *Unit = cxtu::getASTUnit(TU); in checkForMacroInMacroDefinition()
7228 return checkForMacroInMacroDefinition(MI, Tok, TU); in checkForMacroInMacroDefinition()
7239 Logger &cxindex::Logger::operator<<(CXTranslationUnit TU) { in operator <<() argument
7240 if (TU) { in operator <<()
7241 if (ASTUnit *Unit = cxtu::getASTUnit(TU)) { in operator <<()