Lines Matching refs:TU
35 CXCursor cxcursor::MakeCXCursorInvalid(CXCursorKind K, CXTranslationUnit TU) { in MakeCXCursorInvalid() argument
37 CXCursor C = { K, 0, { nullptr, nullptr, TU } }; in MakeCXCursorInvalid()
67 CXTranslationUnit TU) { in MakeCXCursor() argument
68 assert(A && Parent && TU && "Invalid arguments!"); in MakeCXCursor()
69 CXCursor C = { GetCursorKind(A), 0, { Parent, A, TU } }; in MakeCXCursor()
73 CXCursor cxcursor::MakeCXCursor(const Decl *D, CXTranslationUnit TU, in MakeCXCursor() argument
76 assert(D && TU && "Invalid arguments!"); in MakeCXCursor()
94 { D, (void*)(intptr_t) (FirstInDeclGroup ? 1 : 0), TU }}; in MakeCXCursor()
98 CXCursor C = { K, 0, { D, (void*)(intptr_t) (FirstInDeclGroup ? 1 : 0), TU }}; in MakeCXCursor()
103 CXTranslationUnit TU, in MakeCXCursor() argument
105 assert(S && TU && "Invalid arguments!"); in MakeCXCursor()
261 return MakeCXCursor(Src, Parent, TU, RegionOfInterest); in MakeCXCursor()
267 Parent, TU, RegionOfInterest); in MakeCXCursor()
516 CXCursor C = { K, 0, { Parent, S, TU } }; in MakeCXCursor()
588 CXCursor C = { K, 0, { Parent, S, TU } }; in MakeCXCursor()
594 CXTranslationUnit TU) { in MakeCursorObjCSuperClassRef() argument
595 assert(Super && TU && "Invalid arguments!"); in MakeCursorObjCSuperClassRef()
597 CXCursor C = { CXCursor_ObjCSuperClassRef, 0, { Super, RawLoc, TU } }; in MakeCursorObjCSuperClassRef()
610 CXTranslationUnit TU) { in MakeCursorObjCProtocolRef() argument
611 assert(Proto && TU && "Invalid arguments!"); in MakeCursorObjCProtocolRef()
613 CXCursor C = { CXCursor_ObjCProtocolRef, 0, { Proto, RawLoc, TU } }; in MakeCursorObjCProtocolRef()
626 CXTranslationUnit TU) { in MakeCursorObjCClassRef() argument
630 assert(TU && "Invalid arguments!"); in MakeCursorObjCClassRef()
632 CXCursor C = { CXCursor_ObjCClassRef, 0, { Class, RawLoc, TU } }; in MakeCursorObjCClassRef()
644 CXTranslationUnit TU) { in MakeCursorTypeRef() argument
645 assert(Type && TU && "Invalid arguments!"); in MakeCursorTypeRef()
647 CXCursor C = { CXCursor_TypeRef, 0, { Type, RawLoc, TU } }; in MakeCursorTypeRef()
660 CXTranslationUnit TU) { in MakeCursorTemplateRef() argument
661 assert(Template && TU && "Invalid arguments!"); in MakeCursorTemplateRef()
663 CXCursor C = { CXCursor_TemplateRef, 0, { Template, RawLoc, TU } }; in MakeCursorTemplateRef()
676 CXTranslationUnit TU) { in MakeCursorNamespaceRef() argument
678 assert(NS && (isa<NamespaceDecl>(NS) || isa<NamespaceAliasDecl>(NS)) && TU && in MakeCursorNamespaceRef()
681 CXCursor C = { CXCursor_NamespaceRef, 0, { NS, RawLoc, TU } }; in MakeCursorNamespaceRef()
693 CXTranslationUnit TU) { in MakeCursorVariableRef() argument
695 assert(Var && TU && "Invalid arguments!"); in MakeCursorVariableRef()
697 CXCursor C = { CXCursor_VariableRef, 0, { Var, RawLoc, TU } }; in MakeCursorVariableRef()
709 CXTranslationUnit TU) { in MakeCursorMemberRef() argument
711 assert(Field && TU && "Invalid arguments!"); in MakeCursorMemberRef()
713 CXCursor C = { CXCursor_MemberRef, 0, { Field, RawLoc, TU } }; in MakeCursorMemberRef()
725 CXTranslationUnit TU){ in MakeCursorCXXBaseSpecifier() argument
726 CXCursor C = { CXCursor_CXXBaseSpecifier, 0, { B, nullptr, TU } }; in MakeCursorCXXBaseSpecifier()
736 CXTranslationUnit TU) { in MakePreprocessingDirectiveCursor() argument
740 TU } in MakePreprocessingDirectiveCursor()
749 ASTUnit *TU = getCursorASTUnit(C); in getCursorPreprocessingDirective() local
750 return TU->mapRangeFromPreamble(Range); in getCursorPreprocessingDirective()
754 CXTranslationUnit TU) { in MakeMacroDefinitionCursor() argument
755 CXCursor C = { CXCursor_MacroDefinition, 0, { MI, nullptr, TU } }; in MakeMacroDefinitionCursor()
765 CXTranslationUnit TU) { in MakeMacroExpansionCursor() argument
766 CXCursor C = { CXCursor_MacroExpansion, 0, { MI, nullptr, TU } }; in MakeMacroExpansionCursor()
772 CXTranslationUnit TU) { in MakeMacroExpansionCursor() argument
774 CXCursor C = { CXCursor_MacroExpansion, 0, { MI, Loc.getPtrEncoding(), TU } }; in MakeMacroExpansionCursor()
795 CXTranslationUnit TU) { in MakeInclusionDirectiveCursor() argument
796 CXCursor C = { CXCursor_InclusionDirective, 0, { ID, nullptr, TU } }; in MakeInclusionDirectiveCursor()
806 CXTranslationUnit TU) { in MakeCursorLabelRef() argument
808 assert(Label && TU && "Invalid arguments!"); in MakeCursorLabelRef()
810 CXCursor C = { CXCursor_LabelRef, 0, { Label, RawLoc, TU } }; in MakeCursorLabelRef()
822 CXTranslationUnit TU) { in MakeCursorOverloadedDeclRef() argument
823 assert(E && TU && "Invalid arguments!"); in MakeCursorOverloadedDeclRef()
828 { Storage.getOpaqueValue(), RawLoc, TU } in MakeCursorOverloadedDeclRef()
835 CXTranslationUnit TU) { in MakeCursorOverloadedDeclRef() argument
836 assert(D && TU && "Invalid arguments!"); in MakeCursorOverloadedDeclRef()
841 { Storage.getOpaqueValue(), RawLoc, TU } in MakeCursorOverloadedDeclRef()
848 CXTranslationUnit TU) { in MakeCursorOverloadedDeclRef() argument
849 assert(Name.getAsOverloadedTemplate() && TU && "Invalid arguments!"); in MakeCursorOverloadedDeclRef()
854 { Storage.getOpaqueValue(), RawLoc, TU } in MakeCursorOverloadedDeclRef()
897 CXTranslationUnit TU = getCursorTU(Cursor); in getCursorASTUnit() local
898 if (!TU) in getCursorASTUnit()
900 return cxtu::getASTUnit(TU); in getCursorASTUnit()
914 CXTranslationUnit TU = getCursorTU(cursor); in getOverriddenCursors() local
920 overridden.push_back(MakeCXCursor(*I, TU)); in getOverriddenCursors()
985 CXTranslationUnit TU = getCursorTU(cursor); in getTypeRefCursor() local
997 return MakeCursorTypeRef(Typedef->getDecl(), Loc, TU); in getTypeRefCursor()
999 return MakeCursorTypeRef(Tag->getDecl(), Loc, TU); in getTypeRefCursor()
1001 return MakeCursorTypeRef(TemplP->getDecl(), Loc, TU); in getTypeRefCursor()
1344 CXTranslationUnit TU = cxcursor::getCursorTU(cursor); in clang_getOverriddenCursors() local
1346 if (!overridden || !num_overridden || !TU) in clang_getOverriddenCursors()
1353 *static_cast<OverridenCursorsPool*>(TU->OverridenCursorsPool); in clang_getOverriddenCursors()
1372 CXCursor backRefCursor = MakeCXCursorInvalid(CXCursor_InvalidFile, TU); in clang_getOverriddenCursors()
1374 assert(cxcursor::getCursorTU(backRefCursor) == TU); in clang_getOverriddenCursors()
1403 CXTranslationUnit TU = getCursorTU(*overridden); in clang_disposeOverriddenCursors() local
1405 assert(Vec && TU); in clang_disposeOverriddenCursors()
1408 *static_cast<OverridenCursorsPool*>(TU->OverridenCursorsPool); in clang_disposeOverriddenCursors()
1447 CXTranslationUnit TU = cxcursor::getCursorTU(C); in clang_Cursor_getReceiverType() local
1453 return cxtype::MakeCXType(MsgE->getReceiverType(), TU); in clang_Cursor_getReceiverType()
1455 return cxtype::MakeCXType(QualType(), TU); in clang_Cursor_getReceiverType()