Home
last modified time | relevance | path

Searched refs:TU (Results 1 – 25 of 327) sorted by relevance

12345678910>>...14

/external/clang/tools/libclang/
DCXTranslationUnit.h43 static inline ASTUnit *getASTUnit(CXTranslationUnit TU) { in getASTUnit() argument
44 if (!TU) in getASTUnit()
46 return TU->TheASTUnit; in getASTUnit()
53 static inline bool isNotUsableTU(CXTranslationUnit TU) { in isNotUsableTU() argument
54 return !TU; in isNotUsableTU()
57 #define LOG_BAD_TU(TU) \ argument
60 *Log << "called with a bad TU: " << TU; \
65 CXTranslationUnitImpl *TU; variable
68 CXTUOwner(CXTranslationUnitImpl *tu) : TU(tu) { } in CXTUOwner()
71 CXTranslationUnitImpl *getTU() const { return TU; } in getTU()
[all …]
DCXCursor.h52 CXTranslationUnit TU);
53 CXCursor MakeCXCursor(const clang::Decl *D, CXTranslationUnit TU,
57 CXTranslationUnit TU,
59 CXCursor MakeCXCursorInvalid(CXCursorKind K, CXTranslationUnit TU = nullptr);
64 CXTranslationUnit TU);
74 CXTranslationUnit TU);
84 CXTranslationUnit TU);
93 CXTranslationUnit TU);
101 CXTranslationUnit TU);
111 CXTranslationUnit TU);
[all …]
DCXCursor.cpp35 CXCursor cxcursor::MakeCXCursorInvalid(CXCursorKind K, CXTranslationUnit TU) { in MakeCXCursorInvalid() argument
37 CXCursor C = { K, 0, { nullptr, nullptr, TU } }; in MakeCXCursorInvalid()
70 CXTranslationUnit TU) { in MakeCXCursor() argument
71 assert(A && Parent && TU && "Invalid arguments!"); in MakeCXCursor()
72 CXCursor C = { GetCursorKind(A), 0, { Parent, A, TU } }; in MakeCXCursor()
76 CXCursor cxcursor::MakeCXCursor(const Decl *D, CXTranslationUnit TU, in MakeCXCursor() argument
79 assert(D && TU && "Invalid arguments!"); in MakeCXCursor()
97 { D, (void*)(intptr_t) (FirstInDeclGroup ? 1 : 0), TU }}; in MakeCXCursor()
101 CXCursor C = { K, 0, { D, (void*)(intptr_t) (FirstInDeclGroup ? 1 : 0), TU }}; in MakeCXCursor()
106 CXTranslationUnit TU, in MakeCXCursor() argument
[all …]
DCIndexHigh.cpp23 static void getTopOverriddenMethods(CXTranslationUnit TU, in getTopOverriddenMethods() argument
32 cxcursor::getOverriddenCursors(cxcursor::MakeCXCursor(D, TU), Overridden); in getTopOverriddenMethods()
41 getTopOverriddenMethods(TU, cxcursor::getCursorDecl(*I), Methods); in getTopOverriddenMethods()
47 CXTranslationUnit TU; member
56 FindFileIdRefVisitData(CXTranslationUnit TU, FileID FID, in FindFileIdRefVisitData()
59 : TU(TU), FID(FID), SelectorIdIdx(selectorIdIdx), visitor(visitor) { in FindFileIdRefVisitData()
61 getTopOverriddenMethods(TU, Dcl, TopMethods); in FindFileIdRefVisitData()
65 return cxtu::getASTUnit(TU)->getASTContext(); in getASTContext()
118 getTopOverriddenMethods(TU, D, methods); in isOverriddingMethod()
215 static bool findIdRefsInFile(CXTranslationUnit TU, CXCursor declCursor, in findIdRefsInFile() argument
[all …]
DCIndexInclusionStack.cpp25 CXTranslationUnit TU, CXInclusionVisitor CB, in getInclusions() argument
28 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in getInclusions()
74 void clang_getInclusions(CXTranslationUnit TU, CXInclusionVisitor CB, in clang_getInclusions() argument
76 if (cxtu::isNotUsableTU(TU)) { in clang_getInclusions()
77 LOG_BAD_TU(TU); in clang_getInclusions()
81 SourceManager &SM = cxtu::getASTUnit(TU)->getSourceManager(); in clang_getInclusions()
91 SM.loaded_sloc_entry_size(), TU, CB, clientData); in clang_getInclusions()
98 getInclusions(&SourceManager::getLocalSLocEntry, n, TU, CB, clientData); in clang_getInclusions()
DCXType.cpp103 CXType cxtype::MakeCXType(QualType T, CXTranslationUnit TU) { in MakeCXType() argument
106 if (TU && !T.isNull()) { in MakeCXType()
109 return MakeCXType(ATT->getModifiedType(), TU); in MakeCXType()
112 ASTContext &Ctx = cxtu::getASTUnit(TU)->getASTContext(); in MakeCXType()
125 return MakeCXType(DT->getOriginalType(), TU); in MakeCXType()
132 : T.getAsOpaquePtr(), TU } }; in MakeCXType()
151 CXTranslationUnit TU = cxcursor::getCursorTU(C); in clang_getCursorType() local
152 if (!TU) in clang_getCursorType()
153 return MakeCXType(QualType(), TU); in clang_getCursorType()
155 ASTContext &Context = cxtu::getASTUnit(TU)->getASTContext(); in clang_getCursorType()
[all …]
DCIndex.cpp98 if (TU) in ~CXTUOwner()
99 clang_disposeTranslationUnit(TU); in ~CXTUOwner()
250 ASTUnit *Unit = cxtu::getASTUnit(TU); in visitFileRegion()
299 ASTUnit *Unit = cxtu::getASTUnit(TU); in visitDeclsFromFileRegion()
362 if (Visit(MakeCXCursor(D, TU, Range), /*CheckedRegionOfInterest=*/true)) in visitDeclsFromFileRegion()
382 if (Visit(MakeCXCursor(D, TU, Range), /*CheckedRegionOfInterest=*/true)) in visitDeclsFromFileRegion()
453 if (Visit(MakeMacroExpansionCursor(ME, TU))) in visitPreprocessedEntities()
460 if (Visit(MakeMacroDefinitionCursor(MD, TU))) in visitPreprocessedEntities()
467 if (Visit(MakeInclusionDirectiveCursor(ID, TU))) in visitPreprocessedEntities()
515 CXTranslationUnit TU = getCursorTU(Cursor); in VisitChildren() local
[all …]
DCXString.h78 CXStringBuf *getCXStringBuf(CXTranslationUnit TU);
88 CXTranslationUnit TU; member
90 CXStringBuf(CXTranslationUnit TU) : TU(TU) {} in CXStringBuf()
96 CXStringBuf *getCXStringBuf(CXTranslationUnit TU);
DCXComment.cpp370 CXTranslationUnit TU = CXC.TranslationUnit; in clang_HTMLTagComment_getAsString() local
371 if (!TU->CommentToXML) in clang_HTMLTagComment_getAsString()
372 TU->CommentToXML = new clang::index::CommentToXMLConverter(); in clang_HTMLTagComment_getAsString()
375 TU->CommentToXML->convertHTMLTagNodeToText( in clang_HTMLTagComment_getAsString()
376 HTC, Text, cxtu::getASTUnit(TU)->getASTContext()); in clang_HTMLTagComment_getAsString()
385 CXTranslationUnit TU = CXC.TranslationUnit; in clang_FullComment_getAsHTML() local
386 if (!TU->CommentToXML) in clang_FullComment_getAsHTML()
387 TU->CommentToXML = new clang::index::CommentToXMLConverter(); in clang_FullComment_getAsHTML()
390 TU->CommentToXML in clang_FullComment_getAsHTML()
391 ->convertCommentToHTML(FC, HTML, cxtu::getASTUnit(TU)->getASTContext()); in clang_FullComment_getAsHTML()
[all …]
DCIndexUSRs.cpp49 CXTranslationUnit TU = cxcursor::getCursorTU(C); in clang_getCursorUSR() local
50 if (!TU) in clang_getCursorUSR()
53 cxstring::CXStringBuf *buf = cxstring::getCXStringBuf(TU); in clang_getCursorUSR()
70 CXTranslationUnit TU = cxcursor::getCursorTU(C); in clang_getCursorUSR() local
71 if (!TU) in clang_getCursorUSR()
74 cxstring::CXStringBuf *buf = cxstring::getCXStringBuf(TU); in clang_getCursorUSR()
79 cxtu::getASTUnit(TU)->getSourceManager(), in clang_getCursorUSR()
DCIndexer.h98 void PrintLibclangResourceUsage(CXTranslationUnit TU);
106 SourceLocation MacroDefLoc, CXTranslationUnit TU);
110 CXTranslationUnit TU);
117 CXTranslationUnit TU);
124 CXTranslationUnit TU);
DCXString.cpp136 CXStringBuf *CXStringPool::getCXStringBuf(CXTranslationUnit TU) { in getCXStringBuf() argument
138 return new CXStringBuf(TU); in getCXStringBuf()
146 CXStringBuf *getCXStringBuf(CXTranslationUnit TU) { in getCXStringBuf() argument
147 return TU->StringPool->getCXStringBuf(TU); in getCXStringBuf()
151 TU->StringPool->Pool.push_back(this); in dispose()
DCXSourceLocation.cpp121 CXSourceLocation clang_getLocation(CXTranslationUnit TU, in clang_getLocation() argument
125 if (cxtu::isNotUsableTU(TU)) { in clang_getLocation()
126 LOG_BAD_TU(TU); in clang_getLocation()
135 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_getLocation()
155 CXSourceLocation clang_getLocationForOffset(CXTranslationUnit TU, in clang_getLocationForOffset() argument
158 if (cxtu::isNotUsableTU(TU)) { in clang_getLocationForOffset()
159 LOG_BAD_TU(TU); in clang_getLocationForOffset()
165 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_getLocationForOffset()
DCIndexCodeCompletion.cpp528 CXTranslationUnit *TU; member in __anon0f18279c0211::CaptureCompletionResults
535 TU(TranslationUnit) { } in CaptureCompletionResults()
592 CXCursor cursor = cxcursor::MakeCXCursor(D, *TU); in ProcessCodeCompleteResults()
650 clang_codeCompleteAt_Impl(CXTranslationUnit TU, const char *complete_filename, in clang_codeCompleteAt_Impl() argument
664 if (cxtu::isNotUsableTU(TU)) { in clang_codeCompleteAt_Impl()
665 LOG_BAD_TU(TU); in clang_codeCompleteAt_Impl()
669 ASTUnit *AST = cxtu::getASTUnit(TU); in clang_codeCompleteAt_Impl()
673 CIndexer *CXXIdx = TU->CIdx; in clang_codeCompleteAt_Impl()
701 CaptureCompletionResults Capture(Opts, *Results, &TU); in clang_codeCompleteAt_Impl()
798 CXCodeCompleteResults *clang_codeCompleteAt(CXTranslationUnit TU, in clang_codeCompleteAt() argument
[all …]
DCursorVisitor.h65 CXTranslationUnit TU;
144 CursorVisitor(CXTranslationUnit TU, CXCursorVisitor Visitor,
151 : TU(TU), AU(cxtu::getASTUnit(TU)), in TU() argument
176 CXTranslationUnit getTU() const { return TU; } in getTU()
DCIndexDiagnostic.cpp160 CXDiagnosticSetImpl *cxdiag::lazyCreateDiags(CXTranslationUnit TU, in lazyCreateDiags() argument
162 ASTUnit *AU = cxtu::getASTUnit(TU); in lazyCreateDiags()
164 if (TU->Diagnostics && checkIfChanged) { in lazyCreateDiags()
183 Set = static_cast<CXDiagnosticSetImpl*>(TU->Diagnostics); in lazyCreateDiags()
188 TU->Diagnostics = nullptr; in lazyCreateDiags()
192 if (!TU->Diagnostics) { in lazyCreateDiags()
194 TU->Diagnostics = Set; in lazyCreateDiags()
204 return static_cast<CXDiagnosticSetImpl*>(TU->Diagnostics); in lazyCreateDiags()
/external/clang/test/Sema/
Dtransparent-union.c7 } TU __attribute__((transparent_union)); typedef
9 void f(TU); // expected-note{{passing argument to parameter here}}
17 TU tu_ip = ip; // expected-error{{incompatible type}} in g()
18 TU tu; in g()
25 void fip(TU);
28 void ffp(TU);
31 void flp(TU);
34 void fvp(TU); // expected-note{{previous declaration is here}}
37 void fsp(TU); // expected-note{{previous declaration is here}}
40 void fi(TU); // expected-note{{previous declaration is here}}
[all …]
/external/clang/tools/c-index-test/
Dc-index-test.c90 static int checkForErrors(CXTranslationUnit TU);
123 CXTranslationUnit *TU) { in CreateTranslationUnit() argument
124 enum CXErrorCode Err = clang_createTranslationUnit2(Idx, file, TU); in CreateTranslationUnit()
128 *TU = 0; in CreateTranslationUnit()
660 CXTranslationUnit TU = clang_Cursor_getTranslationUnit(Cursor); in PrintCursor() local
896 if (clang_isFileMultipleIncludeGuarded(TU, File)) in PrintCursor()
1054 void PrintDiagnostics(CXTranslationUnit TU) { in PrintDiagnostics() argument
1055 CXDiagnosticSet TUSet = clang_getDiagnosticSetFromTU(TU); in PrintDiagnostics()
1060 void PrintMemoryUsage(CXTranslationUnit TU) { in PrintMemoryUsage() argument
1063 CXTUResourceUsage usage = clang_getCXTUResourceUsage(TU); in PrintMemoryUsage()
[all …]
/external/python/dateutil/dateutil/test/
Dtest_rrule.py14 MO, TU, WE, TH, FR, SA, SU
106 byweekday=(TU, TH),
115 byweekday=(TU(1), TH(-1)),
124 byweekday=(TU(3), TH(-3)),
134 byweekday=(TU, TH),
144 byweekday=(TU(1), TH(-1)),
156 byweekday=(TU(3), TH(-3)),
166 byweekday=(TU, TH),
177 byweekday=(TU, TH),
441 byweekday=(TU, TH),
[all …]
Dtest_imports.py59 from dateutil.relativedelta import MO, TU, WE, TH, FR, SA, SU
61 for var in (relativedelta, MO, TU, WE, TH, FR, SA, SU):
83 from dateutil.rrule import MO, TU, WE, TH, FR, SA, SU
88 MO, TU, WE, TH, FR, SA, SU)
/external/clang/unittests/AST/
DPostOrderASTVisitor.cpp83 auto TU = ASTUnit->getASTContext().getTranslationUnitDecl(); in TEST() local
87 Visitor.TraverseTranslationUnitDecl(TU); in TEST()
108 auto TU = ASTUnit->getASTContext().getTranslationUnitDecl(); in TEST() local
112 Visitor.TraverseTranslationUnitDecl(TU); in TEST()
/external/elfutils/tests/
Drun-readelf-gdb_index.sh73 TU offset: 0x38
82 TU list at offset 0x38 contains 1 entries:
104 TU offset: 0x38
113 TU list at offset 0x38 contains 1 entries:
/external/clang/lib/StaticAnalyzer/Checkers/
DDebugCheckers.cpp125 void checkASTDecl(const TranslationUnitDecl *TU, AnalysisManager& mgr, in checkASTDecl() argument
128 CG.addToCallGraph(const_cast<TranslationUnitDecl*>(TU)); in checkASTDecl()
145 void checkASTDecl(const TranslationUnitDecl *TU, AnalysisManager& mgr, in checkASTDecl() argument
148 CG.addToCallGraph(const_cast<TranslationUnitDecl*>(TU)); in checkASTDecl()
173 void checkEndOfTranslationUnit(const TranslationUnitDecl *TU, in checkEndOfTranslationUnit() argument
/external/llvm/lib/DebugInfo/DWARF/
DDWARFTypeUnit.cpp36 if (const DWARFDebugInfoEntryMinimal *TU = getUnitDIE(false)) in dump() local
37 TU->dump(OS, this, -1U); in dump()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/DWARF/
DDWARFAcceleratorTable.cpp587 uint32_t DWARFDebugNames::NameIndex::getLocalTUOffset(uint32_t TU) const { in getLocalTUOffset()
588 assert(TU < Hdr.LocalTypeUnitCount); in getLocalTUOffset()
593 uint64_t DWARFDebugNames::NameIndex::getForeignTUSignature(uint32_t TU) const { in getForeignTUSignature()
594 assert(TU < Hdr.ForeignTypeUnitCount); in getForeignTUSignature()
697 for (uint32_t TU = 0; TU < Hdr.LocalTypeUnitCount; ++TU) in dumpLocalTUs() local
698 W.startLine() << format("LocalTU[%u]: 0x%08x\n", TU, getLocalTUOffset(TU)); in dumpLocalTUs()
706 for (uint32_t TU = 0; TU < Hdr.ForeignTypeUnitCount; ++TU) { in dumpForeignTUs() local
707 W.startLine() << format("ForeignTU[%u]: 0x%016" PRIx64 "\n", TU, in dumpForeignTUs()
708 getForeignTUSignature(TU)); in dumpForeignTUs()

12345678910>>...14