Searched defs:TU (Results 1 - 25 of 35) sorted by relevance

12

/external/clang/tools/libclang/
H A DCIndexInclusionStack.cpp25 void clang_getInclusions(CXTranslationUnit TU, CXInclusionVisitor CB, argument
27 if (cxtu::isNotUsableTU(TU)) {
28 LOG_BAD_TU(TU);
32 ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
H A DCXComment.h32 CXTranslationUnit TU) {
35 Result.TranslationUnit = TU;
31 createCXComment(const comments::Comment *C, CXTranslationUnit TU) argument
H A DCXString.h76 CXStringBuf *getCXStringBuf(CXTranslationUnit TU);
86 CXTranslationUnit TU; member in struct:clang::cxstring::CXStringBuf
88 CXStringBuf(CXTranslationUnit TU) : TU(TU) {} argument
94 CXStringBuf *getCXStringBuf(CXTranslationUnit TU);
H A DCIndexUSRs.cpp49 CXTranslationUnit TU = cxcursor::getCursorTU(C);
50 if (!TU)
53 cxstring::CXStringBuf *buf = cxstring::getCXStringBuf(TU);
70 CXTranslationUnit TU = cxcursor::getCursorTU(C); local
71 if (!TU)
74 cxstring::CXStringBuf *buf = cxstring::getCXStringBuf(TU);
79 cxtu::getASTUnit(TU)->getSourceManager(),
H A DCXString.cpp127 CXStringBuf *CXStringPool::getCXStringBuf(CXTranslationUnit TU) { argument
129 return new CXStringBuf(TU);
137 CXStringBuf *getCXStringBuf(CXTranslationUnit TU) { argument
138 return TU->StringPool->getCXStringBuf(TU);
142 TU->StringPool->Pool.push_back(this);
H A DCXTranslationUnit.h43 static inline ASTUnit *getASTUnit(CXTranslationUnit TU) { argument
44 if (!TU)
46 return TU->TheASTUnit;
53 static inline bool isNotUsableTU(CXTranslationUnit TU) { argument
54 return !TU;
57 #define LOG_BAD_TU(TU) \
60 *Log << "called with a bad TU: " << TU; \
65 CXTranslationUnitImpl *TU; member in class:clang::cxtu::CXTUOwner
68 CXTUOwner(CXTranslationUnitImpl *tu) : TU(t
[all...]
H A DCIndexHigh.cpp23 static void getTopOverriddenMethods(CXTranslationUnit TU, argument
32 cxcursor::getOverriddenCursors(cxcursor::MakeCXCursor(D, TU), Overridden);
41 getTopOverriddenMethods(TU, cxcursor::getCursorDecl(*I), Methods);
47 CXTranslationUnit TU; member in struct:__anon19519::FindFileIdRefVisitData
56 FindFileIdRefVisitData(CXTranslationUnit TU, FileID FID, argument
59 : TU(TU), FID(FID), SelectorIdIdx(selectorIdIdx), visitor(visitor) {
61 getTopOverriddenMethods(TU, Dcl, TopMethods);
65 return cxtu::getASTUnit(TU)->getASTContext();
118 getTopOverriddenMethods(TU,
215 findIdRefsInFile(CXTranslationUnit TU, CXCursor declCursor, const FileEntry *File, CXCursorAndRangeVisitor Visitor) argument
309 findMacroRefsInFile(CXTranslationUnit TU, CXCursor Cursor, const FileEntry *File, CXCursorAndRangeVisitor Visitor) argument
384 findIncludesInFile(CXTranslationUnit TU, const FileEntry *File, CXCursorAndRangeVisitor Visitor) argument
481 clang_findIncludesInFile(CXTranslationUnit TU, CXFile file, CXCursorAndRangeVisitor visitor) argument
529 clang_findIncludesInFileWithBlock(CXTranslationUnit TU, CXFile file, CXCursorAndRangeVisitorBlock block) argument
[all...]
H A DCXSourceLocation.cpp121 CXSourceLocation clang_getLocation(CXTranslationUnit TU, argument
125 if (cxtu::isNotUsableTU(TU)) {
126 LOG_BAD_TU(TU);
135 ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
155 CXSourceLocation clang_getLocationForOffset(CXTranslationUnit TU, argument
158 if (cxtu::isNotUsableTU(TU)) {
159 LOG_BAD_TU(TU);
165 ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
H A DCursorVisitor.h65 CXTranslationUnit TU; member in class:clang::cxcursor::CursorVisitor
144 CursorVisitor(CXTranslationUnit TU, CXCursorVisitor Visitor, argument
151 : TU(TU), AU(cxtu::getASTUnit(TU)),
176 CXTranslationUnit getTU() const { return TU; }
H A DCIndexDiagnostic.cpp161 CXDiagnosticSetImpl *cxdiag::lazyCreateDiags(CXTranslationUnit TU, argument
163 ASTUnit *AU = cxtu::getASTUnit(TU);
165 if (TU->Diagnostics && checkIfChanged) {
184 Set = static_cast<CXDiagnosticSetImpl*>(TU->Diagnostics);
189 TU->Diagnostics = nullptr;
193 if (!TU->Diagnostics) {
195 TU->Diagnostics = Set;
205 return static_cast<CXDiagnosticSetImpl*>(TU->Diagnostics);
H A DCXType.cpp100 CXType cxtype::MakeCXType(QualType T, CXTranslationUnit TU) { argument
103 if (TU && !T.isNull()) {
104 ASTContext &Ctx = cxtu::getASTUnit(TU)->getASTContext();
117 return MakeCXType(DT->getOriginalType(), TU);
124 : T.getAsOpaquePtr(), TU } };
143 CXTranslationUnit TU = cxcursor::getCursorTU(C);
144 if (!TU)
145 return MakeCXType(QualType(), TU);
147 ASTContext &Context = cxtu::getASTUnit(TU)->getASTContext();
150 return MakeCXType(T, TU);
324 CXTranslationUnit TU = GetTU(CT); local
[all...]
H A DCIndexCodeCompletion.cpp250 /// not rely on the StringPool in the TU.
528 CXTranslationUnit *TU; member in class:__anon19516::CaptureCompletionResults
535 TU(TranslationUnit) { }
592 CXCursor cursor = cxcursor::MakeCXCursor(D, *TU);
650 CXTranslationUnit TU; member in struct:CodeCompleteAtInfo
660 CXTranslationUnit TU = CCAI->TU; local
676 if (cxtu::isNotUsableTU(TU)) {
677 LOG_BAD_TU(TU);
681 ASTUnit *AST = cxtu::getASTUnit(TU);
810 clang_codeCompleteAt(CXTranslationUnit TU, const char *complete_filename, unsigned complete_line, unsigned complete_column, struct CXUnsavedFile *unsaved_files, unsigned num_unsaved_files, unsigned options) argument
[all...]
H A DCXCursor.cpp35 CXCursor cxcursor::MakeCXCursorInvalid(CXCursorKind K, CXTranslationUnit TU) { argument
37 CXCursor C = { K, 0, { nullptr, nullptr, TU } };
66 CXTranslationUnit TU) {
67 assert(A && Parent && TU && "Invalid arguments!");
68 CXCursor C = { GetCursorKind(A), 0, { Parent, A, TU } };
72 CXCursor cxcursor::MakeCXCursor(const Decl *D, CXTranslationUnit TU, argument
75 assert(D && TU && "Invalid arguments!");
93 { D, (void*)(intptr_t) (FirstInDeclGroup ? 1 : 0), TU }};
97 CXCursor C = { K, 0, { D, (void*)(intptr_t) (FirstInDeclGroup ? 1 : 0), TU }};
102 CXTranslationUnit TU,
65 MakeCXCursor(const Attr *A, const Decl *Parent, CXTranslationUnit TU) argument
101 MakeCXCursor(const Stmt *S, const Decl *Parent, CXTranslationUnit TU, SourceRange RegionOfInterest) argument
550 MakeCursorObjCSuperClassRef(ObjCInterfaceDecl *Super, SourceLocation Loc, CXTranslationUnit TU) argument
566 MakeCursorObjCProtocolRef(const ObjCProtocolDecl *Proto, SourceLocation Loc, CXTranslationUnit TU) argument
582 MakeCursorObjCClassRef(const ObjCInterfaceDecl *Class, SourceLocation Loc, CXTranslationUnit TU) argument
601 MakeCursorTypeRef(const TypeDecl *Type, SourceLocation Loc, CXTranslationUnit TU) argument
616 MakeCursorTemplateRef(const TemplateDecl *Template, SourceLocation Loc, CXTranslationUnit TU) argument
632 MakeCursorNamespaceRef(const NamedDecl *NS, SourceLocation Loc, CXTranslationUnit TU) argument
650 MakeCursorVariableRef(const VarDecl *Var, SourceLocation Loc, CXTranslationUnit TU) argument
666 MakeCursorMemberRef(const FieldDecl *Field, SourceLocation Loc, CXTranslationUnit TU) argument
682 MakeCursorCXXBaseSpecifier(const CXXBaseSpecifier *B, CXTranslationUnit TU) argument
693 MakePreprocessingDirectiveCursor(SourceRange Range, CXTranslationUnit TU) argument
707 ASTUnit *TU = getCursorASTUnit(C); local
711 MakeMacroDefinitionCursor(const MacroDefinition *MI, CXTranslationUnit TU) argument
722 MakeMacroExpansionCursor(MacroExpansion *MI, CXTranslationUnit TU) argument
728 MakeMacroExpansionCursor(MacroDefinition *MI, SourceLocation Loc, CXTranslationUnit TU) argument
752 MakeInclusionDirectiveCursor(InclusionDirective *ID, CXTranslationUnit TU) argument
763 MakeCursorLabelRef(LabelStmt *Label, SourceLocation Loc, CXTranslationUnit TU) argument
779 MakeCursorOverloadedDeclRef(const OverloadExpr *E, CXTranslationUnit TU) argument
791 MakeCursorOverloadedDeclRef(const Decl *D, SourceLocation Loc, CXTranslationUnit TU) argument
804 MakeCursorOverloadedDeclRef(TemplateName Name, SourceLocation Loc, CXTranslationUnit TU) argument
855 CXTranslationUnit TU = getCursorTU(Cursor); local
1168 CXTranslationUnit TU = cxcursor::getCursorTU(cursor); local
1227 CXTranslationUnit TU = getCursorTU(*overridden); local
1263 CXTranslationUnit TU = cxcursor::getCursorTU(C); local
[all...]
H A DIndexing.cpp40 static void indexDiagnostics(CXTranslationUnit TU, IndexingContext &IdxCtx);
688 CXTranslationUnit TU; member in struct:__anon19528::IndexTranslationUnitInfo
734 static void indexDiagnostics(CXTranslationUnit TU, IndexingContext &IdxCtx) { argument
738 CXDiagnosticSetImpl *DiagSet = cxdiag::lazyCreateDiags(TU);
745 CXTranslationUnit TU = ITUI->TU; local
755 if (isNotUsableTU(TU)) {
756 LOG_BAD_TU(TU);
765 CIndexer *CXXIdx = TU->CIdx;
776 IndexCtx.reset(new IndexingContext(client_data, CB, index_options, TU));
1034 clang_indexTranslationUnit(CXIndexAction idxAction, CXClientData client_data, IndexerCallbacks *index_callbacks, unsigned index_callbacks_size, unsigned index_options, CXTranslationUnit TU) argument
1041 *Log << TU; local
[all...]
/external/clang/lib/Frontend/
H A DASTMerge.cpp59 TranslationUnitDecl *TU = Unit->getASTContext().getTranslationUnitDecl(); local
60 for (auto *D : TU->decls()) {
/external/chromium_org/third_party/skia/experimental/PdfViewer/pdfparser/native/pdfapi/
H A DSkPdfFieldDictionary_autogen.cpp59 SkString SkPdfFieldDictionary::TU(SkPdfNativeDoc* doc) { function in class:SkPdfFieldDictionary
60 SkPdfNativeObject* ret = get("TU", "");
68 return get("TU", "") != NULL;
/external/skia/experimental/PdfViewer/pdfparser/native/pdfapi/
H A DSkPdfFieldDictionary_autogen.cpp59 SkString SkPdfFieldDictionary::TU(SkPdfNativeDoc* doc) { function in class:SkPdfFieldDictionary
60 SkPdfNativeObject* ret = get("TU", "");
68 return get("TU", "") != NULL;
/external/clang/lib/StaticAnalyzer/Checkers/
H A DDebugCheckers.cpp122 void checkASTDecl(const TranslationUnitDecl *TU, AnalysisManager& mgr, argument
125 CG.addToCallGraph(const_cast<TranslationUnitDecl*>(TU));
142 void checkASTDecl(const TranslationUnitDecl *TU, AnalysisManager& mgr, argument
145 CG.addToCallGraph(const_cast<TranslationUnitDecl*>(TU));
170 void checkEndOfTranslationUnit(const TranslationUnitDecl *TU, argument
H A DCheckerDocumentation.cpp179 void checkEndOfTranslationUnit(const TranslationUnitDecl *TU, argument
/external/clang/test/Sema/
H A Dtransparent-union.c7 } TU __attribute__((transparent_union)); typedef in typeref:union:__anon19162
9 void f(TU); // expected-note{{passing argument to parameter here}}
17 TU tu_ip = ip; // expected-error{{incompatible type}}
18 TU tu;
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); // expecte
[all...]
/external/clang/unittests/libclang/
H A DLibclangTest.cpp34 CXTranslationUnit TU = reinterpret_cast<CXTranslationUnit>(1); local
36 clang_createTranslationUnit2(nullptr, nullptr, &TU));
37 EXPECT_EQ(nullptr, TU);
/external/clang/include/clang/StaticAnalyzer/Core/
H A DChecker.h70 const TranslationUnitDecl *TU,
73 ((const CHECKER *)checker)->checkEndOfTranslationUnit(TU, mgr, BR);
69 _checkEndOfTranslationUnit(void *checker, const TranslationUnitDecl *TU, AnalysisManager& mgr, BugReporter &BR) argument
/external/clang/lib/ARCMigrate/
H A DTransforms.cpp518 void MigrationContext::traverse(TranslationUnitDecl *TU) { argument
523 ASTTransform(*this).TraverseDecl(TU);
/external/clang/lib/StaticAnalyzer/Core/
H A DCheckerManager.cpp572 const TranslationUnitDecl *TU,
576 EndOfTranslationUnitCheckers[i](TU, mgr, BR);
571 runCheckersOnEndOfTranslationUnit( const TranslationUnitDecl *TU, AnalysisManager &mgr, BugReporter &BR) argument
/external/clang/lib/StaticAnalyzer/Frontend/
H A DAnalysisConsumer.cpp312 /// \brief Build the call graph for all the top level decls of this TU and
514 TranslationUnitDecl *TU = C.getTranslationUnitDecl(); local
515 checkerMgr->runCheckersOnASTDecl(TU, *Mgr, BR);
540 checkerMgr->runCheckersOnEndOfTranslationUnit(TU, *Mgr, BR);

Completed in 608 milliseconds

12