Lines Matching refs:TU

34 CXCursor cxcursor::MakeCXCursorInvalid(CXCursorKind K, CXTranslationUnit TU) {  in MakeCXCursorInvalid()  argument
36 CXCursor C = {K, 0, {nullptr, nullptr, TU}}; in MakeCXCursorInvalid()
133 CXTranslationUnit TU) { in MakeCXCursor() argument
134 assert(A && Parent && TU && "Invalid arguments!"); in MakeCXCursor()
135 CXCursor C = {GetCursorKind(A), 0, {Parent, A, TU}}; in MakeCXCursor()
139 CXCursor cxcursor::MakeCXCursor(const Decl *D, CXTranslationUnit TU, in MakeCXCursor() argument
142 assert(D && TU && "Invalid arguments!"); in MakeCXCursor()
161 {D, (void *)(intptr_t)(FirstInDeclGroup ? 1 : 0), TU}}; in MakeCXCursor()
165 CXCursor C = {K, 0, {D, (void *)(intptr_t)(FirstInDeclGroup ? 1 : 0), TU}}; in MakeCXCursor()
170 CXTranslationUnit TU, in MakeCXCursor() argument
172 assert(S && TU && "Invalid arguments!"); in MakeCXCursor()
343 return MakeCXCursor(Src, Parent, TU, RegionOfInterest); in MakeCXCursor()
349 TU, RegionOfInterest); in MakeCXCursor()
400 return MakeCXCursor(cast<ConstantExpr>(S)->getSubExpr(), Parent, TU, in MakeCXCursor()
634 CXCursor C = {K, 0, {Parent, S, TU}}; in MakeCXCursor()
866 CXCursor C = {K, 0, {Parent, S, TU}}; in MakeCXCursor()
872 CXTranslationUnit TU) { in MakeCursorObjCSuperClassRef() argument
873 assert(Super && TU && "Invalid arguments!"); in MakeCursorObjCSuperClassRef()
875 CXCursor C = {CXCursor_ObjCSuperClassRef, 0, {Super, RawLoc, TU}}; in MakeCursorObjCSuperClassRef()
888 CXTranslationUnit TU) { in MakeCursorObjCProtocolRef() argument
889 assert(Proto && TU && "Invalid arguments!"); in MakeCursorObjCProtocolRef()
891 CXCursor C = {CXCursor_ObjCProtocolRef, 0, {Proto, RawLoc, TU}}; in MakeCursorObjCProtocolRef()
904 CXTranslationUnit TU) { in MakeCursorObjCClassRef() argument
908 assert(TU && "Invalid arguments!"); in MakeCursorObjCClassRef()
910 CXCursor C = {CXCursor_ObjCClassRef, 0, {Class, RawLoc, TU}}; in MakeCursorObjCClassRef()
922 CXTranslationUnit TU) { in MakeCursorTypeRef() argument
923 assert(Type && TU && "Invalid arguments!"); in MakeCursorTypeRef()
925 CXCursor C = {CXCursor_TypeRef, 0, {Type, RawLoc, TU}}; in MakeCursorTypeRef()
938 CXTranslationUnit TU) { in MakeCursorTemplateRef() argument
939 assert(Template && TU && "Invalid arguments!"); in MakeCursorTemplateRef()
941 CXCursor C = {CXCursor_TemplateRef, 0, {Template, RawLoc, TU}}; in MakeCursorTemplateRef()
954 CXTranslationUnit TU) { in MakeCursorNamespaceRef() argument
956 assert(NS && (isa<NamespaceDecl>(NS) || isa<NamespaceAliasDecl>(NS)) && TU && in MakeCursorNamespaceRef()
959 CXCursor C = {CXCursor_NamespaceRef, 0, {NS, RawLoc, TU}}; in MakeCursorNamespaceRef()
971 CXTranslationUnit TU) { in MakeCursorVariableRef() argument
973 assert(Var && TU && "Invalid arguments!"); in MakeCursorVariableRef()
975 CXCursor C = {CXCursor_VariableRef, 0, {Var, RawLoc, TU}}; in MakeCursorVariableRef()
988 CXTranslationUnit TU) { in MakeCursorMemberRef() argument
990 assert(Field && TU && "Invalid arguments!"); in MakeCursorMemberRef()
992 CXCursor C = {CXCursor_MemberRef, 0, {Field, RawLoc, TU}}; in MakeCursorMemberRef()
1004 CXTranslationUnit TU) { in MakeCursorCXXBaseSpecifier() argument
1005 CXCursor C = {CXCursor_CXXBaseSpecifier, 0, {B, nullptr, TU}}; in MakeCursorCXXBaseSpecifier()
1015 CXTranslationUnit TU) { in MakePreprocessingDirectiveCursor() argument
1019 {Range.getBegin().getPtrEncoding(), Range.getEnd().getPtrEncoding(), TU}}; in MakePreprocessingDirectiveCursor()
1027 ASTUnit *TU = getCursorASTUnit(C); in getCursorPreprocessingDirective() local
1028 return TU->mapRangeFromPreamble(Range); in getCursorPreprocessingDirective()
1032 CXTranslationUnit TU) { in MakeMacroDefinitionCursor() argument
1033 CXCursor C = {CXCursor_MacroDefinition, 0, {MI, nullptr, TU}}; in MakeMacroDefinitionCursor()
1043 CXTranslationUnit TU) { in MakeMacroExpansionCursor() argument
1044 CXCursor C = {CXCursor_MacroExpansion, 0, {MI, nullptr, TU}}; in MakeMacroExpansionCursor()
1050 CXTranslationUnit TU) { in MakeMacroExpansionCursor() argument
1052 CXCursor C = {CXCursor_MacroExpansion, 0, {MI, Loc.getPtrEncoding(), TU}}; in MakeMacroExpansionCursor()
1074 CXTranslationUnit TU) { in MakeInclusionDirectiveCursor() argument
1075 CXCursor C = {CXCursor_InclusionDirective, 0, {ID, nullptr, TU}}; in MakeInclusionDirectiveCursor()
1085 CXTranslationUnit TU) { in MakeCursorLabelRef() argument
1087 assert(Label && TU && "Invalid arguments!"); in MakeCursorLabelRef()
1089 CXCursor C = {CXCursor_LabelRef, 0, {Label, RawLoc, TU}}; in MakeCursorLabelRef()
1101 CXTranslationUnit TU) { in MakeCursorOverloadedDeclRef() argument
1102 assert(E && TU && "Invalid arguments!"); in MakeCursorOverloadedDeclRef()
1106 CXCursor_OverloadedDeclRef, 0, {Storage.getOpaqueValue(), RawLoc, TU}}; in MakeCursorOverloadedDeclRef()
1112 CXTranslationUnit TU) { in MakeCursorOverloadedDeclRef() argument
1113 assert(D && TU && "Invalid arguments!"); in MakeCursorOverloadedDeclRef()
1117 CXCursor_OverloadedDeclRef, 0, {Storage.getOpaqueValue(), RawLoc, TU}}; in MakeCursorOverloadedDeclRef()
1123 CXTranslationUnit TU) { in MakeCursorOverloadedDeclRef() argument
1124 assert(Name.getAsOverloadedTemplate() && TU && "Invalid arguments!"); in MakeCursorOverloadedDeclRef()
1128 CXCursor_OverloadedDeclRef, 0, {Storage.getOpaqueValue(), RawLoc, TU}}; in MakeCursorOverloadedDeclRef()
1166 CXTranslationUnit TU = getCursorTU(Cursor); in getCursorASTUnit() local
1167 if (!TU) in getCursorASTUnit()
1169 return cxtu::getASTUnit(TU); in getCursorASTUnit()
1183 CXTranslationUnit TU = getCursorTU(cursor); in getOverriddenCursors() local
1190 overridden.push_back(MakeCXCursor(*I, TU)); in getOverriddenCursors()
1255 CXTranslationUnit TU = getCursorTU(cursor); in getTypeRefCursor() local
1267 return MakeCursorTypeRef(Typedef->getDecl(), Loc, TU); in getTypeRefCursor()
1269 return MakeCursorTypeRef(Tag->getDecl(), Loc, TU); in getTypeRefCursor()
1271 return MakeCursorTypeRef(TemplP->getDecl(), Loc, TU); in getTypeRefCursor()
1619 CXTranslationUnit TU = cxcursor::getCursorTU(cursor); in clang_getOverriddenCursors() local
1621 if (!overridden || !num_overridden || !TU) in clang_getOverriddenCursors()
1628 *static_cast<OverridenCursorsPool *>(TU->OverridenCursorsPool); in clang_getOverriddenCursors()
1646 CXCursor backRefCursor = MakeCXCursorInvalid(CXCursor_InvalidFile, TU); in clang_getOverriddenCursors()
1648 assert(cxcursor::getCursorTU(backRefCursor) == TU); in clang_getOverriddenCursors()
1677 CXTranslationUnit TU = getCursorTU(*overridden); in clang_disposeOverriddenCursors() local
1679 assert(Vec && TU); in clang_disposeOverriddenCursors()
1682 *static_cast<OverridenCursorsPool *>(TU->OverridenCursorsPool); in clang_disposeOverriddenCursors()
1727 CXTranslationUnit TU = cxcursor::getCursorTU(C); in clang_Cursor_getReceiverType() local
1733 return cxtype::MakeCXType(MsgE->getReceiverType(), TU); in clang_Cursor_getReceiverType()
1737 PropRefE->getReceiverType(cxcursor::getCursorContext(C)), TU); in clang_Cursor_getReceiverType()
1749 return cxtype::MakeCXType(receiverTy, TU); in clang_Cursor_getReceiverType()
1753 return cxtype::MakeCXType(QualType(), TU); in clang_Cursor_getReceiverType()