Home | History | Annotate | Download | only in libclang

Lines Matching defs:TU

35 CXCursor cxcursor::MakeCXCursorInvalid(CXCursorKind K, CXTranslationUnit TU) {
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,
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,
104 assert(S && TU && "Invalid arguments!");
259 return MakeCXCursor(Src, Parent, TU, RegionOfInterest);
265 Parent, TU, RegionOfInterest);
513 CXCursor C = { K, 0, { Parent, S, TU } };
546 CXCursor C = { K, 0, { Parent, S, TU } };
552 CXTranslationUnit TU) {
553 assert(Super && TU && "Invalid arguments!");
555 CXCursor C = { CXCursor_ObjCSuperClassRef, 0, { Super, RawLoc, TU } };
568 CXTranslationUnit TU) {
569 assert(Proto && TU && "Invalid arguments!");
571 CXCursor C = { CXCursor_ObjCProtocolRef, 0, { Proto, RawLoc, TU } };
584 CXTranslationUnit TU) {
588 assert(TU && "Invalid arguments!");
590 CXCursor C = { CXCursor_ObjCClassRef, 0, { Class, RawLoc, TU } };
602 CXTranslationUnit TU) {
603 assert(Type && TU && "Invalid arguments!");
605 CXCursor C = { CXCursor_TypeRef, 0, { Type, RawLoc, TU } };
618 CXTranslationUnit TU) {
619 assert(Template && TU && "Invalid arguments!");
621 CXCursor C = { CXCursor_TemplateRef, 0, { Template, RawLoc, TU } };
634 CXTranslationUnit TU) {
636 assert(NS && (isa<NamespaceDecl>(NS) || isa<NamespaceAliasDecl>(NS)) && TU &&
639 CXCursor C = { CXCursor_NamespaceRef, 0, { NS, RawLoc, TU } };
651 CXTranslationUnit TU) {
653 assert(Var && TU && "Invalid arguments!");
655 CXCursor C = { CXCursor_VariableRef, 0, { Var, RawLoc, TU } };
667 CXTranslationUnit TU) {
669 assert(Field && TU && "Invalid arguments!");
671 CXCursor C = { CXCursor_MemberRef, 0, { Field, RawLoc, TU } };
683 CXTranslationUnit TU){
684 CXCursor C = { CXCursor_CXXBaseSpecifier, 0, { B, nullptr, TU } };
694 CXTranslationUnit TU) {
698 TU }
707 ASTUnit *TU = getCursorASTUnit(C);
708 return TU->mapRangeFromPreamble(Range);
712 CXTranslationUnit TU) {
713 CXCursor C = { CXCursor_MacroDefinition, 0, { MI, nullptr, TU } };
723 CXTranslationUnit TU) {
724 CXCursor C = { CXCursor_MacroExpansion, 0, { MI, nullptr, TU } };
730 CXTranslationUnit TU) {
732 CXCursor C = { CXCursor_MacroExpansion, 0, { MI, Loc.getPtrEncoding(), TU } };
753 CXTranslationUnit TU) {
754 CXCursor C = { CXCursor_InclusionDirective, 0, { ID, nullptr, TU } };
764 CXTranslationUnit TU) {
766 assert(Label && TU && "Invalid arguments!");
768 CXCursor C = { CXCursor_LabelRef, 0, { Label, RawLoc, TU } };
780 CXTranslationUnit TU) {
781 assert(E && TU && "Invalid arguments!");
786 { Storage.getOpaqueValue(), RawLoc, TU }
793 CXTranslationUnit TU) {
794 assert(D && TU && "Invalid arguments!");
799 { Storage.getOpaqueValue(), RawLoc, TU }
806 CXTranslationUnit TU) {
807 assert(Name.getAsOverloadedTemplate() && TU && "Invalid arguments!");
812 { Storage.getOpaqueValue(), RawLoc, TU }
855 CXTranslationUnit TU = getCursorTU(Cursor);
856 if (!TU)
858 return cxtu::getASTUnit(TU);
872 CXTranslationUnit TU = getCursorTU(cursor);
878 overridden.push_back(MakeCXCursor(*I, TU));
943 CXTranslationUnit TU = getCursorTU(cursor);
955 return MakeCursorTypeRef(Typedef->getDecl(), Loc, TU);
957 return MakeCursorTypeRef(Tag->getDecl(), Loc, TU);
959 return MakeCursorTypeRef(TemplP->getDecl(), Loc, TU);
1168 CXTranslationUnit TU = cxcursor::getCursorTU(cursor);
1170 if (!overridden || !num_overridden || !TU)
1177 *static_cast<OverridenCursorsPool*>(TU->OverridenCursorsPool);
1196 CXCursor backRefCursor = MakeCXCursorInvalid(CXCursor_InvalidFile, TU);
1198 assert(cxcursor::getCursorTU(backRefCursor) == TU);
1222 // which has a back-reference to the TU and the vector.
1227 CXTranslationUnit TU = getCursorTU(*overridden);
1229 assert(Vec && TU);
1232 *static_cast<OverridenCursorsPool*>(TU->OverridenCursorsPool);
1263 CXTranslationUnit TU = cxcursor::getCursorTU(C);
1269 return cxtype::MakeCXType(MsgE->getReceiverType(), TU);
1271 return cxtype::MakeCXType(QualType(), TU);