Home | History | Annotate | Download | only in libclang

Lines Matching refs:TU

34 CXCursor cxcursor::MakeCXCursorInvalid(CXCursorKind K, CXTranslationUnit TU) {
36 CXCursor C = { K, 0, { 0, 0, TU } };
57 CXTranslationUnit TU) {
58 assert(A && Parent && TU && "Invalid arguments!");
59 CXCursor C = { GetCursorKind(A), 0, { Parent, A, TU } };
63 CXCursor cxcursor::MakeCXCursor(const Decl *D, CXTranslationUnit TU,
66 assert(D && TU && "Invalid arguments!");
84 { D, (void*)(intptr_t) (FirstInDeclGroup ? 1 : 0), TU }};
88 CXCursor C = { K, 0, { D, (void*)(intptr_t) (FirstInDeclGroup ? 1 : 0), TU }};
93 CXTranslationUnit TU,
95 assert(S && TU && "Invalid arguments!");
247 return MakeCXCursor(Src, Parent, TU, RegionOfInterest);
253 Parent, TU, RegionOfInterest);
501 CXCursor C = { K, 0, { Parent, S, TU } };
514 CXCursor C = { K, 0, { Parent, S, TU } };
520 CXTranslationUnit TU) {
521 assert(Super && TU && "Invalid arguments!");
523 CXCursor C = { CXCursor_ObjCSuperClassRef, 0, { Super, RawLoc, TU } };
536 CXTranslationUnit TU) {
537 assert(Proto && TU && "Invalid arguments!");
539 CXCursor C = { CXCursor_ObjCProtocolRef, 0, { Proto, RawLoc, TU } };
552 CXTranslationUnit TU) {
556 assert(TU && "Invalid arguments!");
558 CXCursor C = { CXCursor_ObjCClassRef, 0, { Class, RawLoc, TU } };
570 CXTranslationUnit TU) {
571 assert(Type && TU && "Invalid arguments!");
573 CXCursor C = { CXCursor_TypeRef, 0, { Type, RawLoc, TU } };
586 CXTranslationUnit TU) {
587 assert(Template && TU && "Invalid arguments!");
589 TU } };
602 CXTranslationUnit TU) {
604 assert(NS && (isa<NamespaceDecl>(NS) || isa<NamespaceAliasDecl>(NS)) && TU &&
607 CXCursor C = { CXCursor_NamespaceRef, 0, { NS, RawLoc, TU } };
619 CXTranslationUnit TU) {
621 assert(Var && TU && "Invalid arguments!");
623 CXCursor C = { CXCursor_VariableRef, 0, { Var, RawLoc, TU } };
635 CXTranslationUnit TU) {
637 assert(Field && TU && "Invalid arguments!");
639 CXCursor C = { CXCursor_MemberRef, 0, { Field, RawLoc, TU } };
651 CXTranslationUnit TU){
652 CXCursor C = { CXCursor_CXXBaseSpecifier, 0, { B, 0, TU } };
662 CXTranslationUnit TU) {
666 TU }
675 ASTUnit *TU = getCursorASTUnit(C);
676 return TU->mapRangeFromPreamble(Range);
680 CXTranslationUnit TU) {
681 CXCursor C = { CXCursor_MacroDefinition, 0, { MI, 0, TU } };
691 CXTranslationUnit TU) {
692 CXCursor C = { CXCursor_MacroExpansion, 0, { MI, 0, TU } };
698 CXTranslationUnit TU) {
700 CXCursor C = { CXCursor_MacroExpansion, 0, { MI, Loc.getPtrEncoding(), TU } };
721 CXTranslationUnit TU) {
722 CXCursor C = { CXCursor_InclusionDirective, 0, { ID, 0, TU } };
732 CXTranslationUnit TU) {
734 assert(Label && TU && "Invalid arguments!");
736 CXCursor C = { CXCursor_LabelRef, 0, { Label, RawLoc, TU } };
748 CXTranslationUnit TU) {
749 assert(E && TU && "Invalid arguments!");
754 { Storage.getOpaqueValue(), RawLoc, TU }
761 CXTranslationUnit TU) {
762 assert(D && TU && "Invalid arguments!");
767 { Storage.getOpaqueValue(), RawLoc, TU }
774 CXTranslationUnit TU) {
775 assert(Name.getAsOverloadedTemplate() && TU && "Invalid arguments!");
780 { Storage.getOpaqueValue(), RawLoc, TU }
823 CXTranslationUnit TU = getCursorTU(Cursor);
824 if (!TU)
826 return cxtu::getASTUnit(TU);
840 CXTranslationUnit TU = getCursorTU(cursor);
846 overridden.push_back(MakeCXCursor(*I, TU));
911 CXTranslationUnit TU = getCursorTU(cursor);
923 return MakeCursorTypeRef(Typedef->getDecl(), Loc, TU);
925 return MakeCursorTypeRef(Tag->getDecl(), Loc, TU);
927 return MakeCursorTypeRef(TemplP->getDecl(), Loc, TU);
1136 CXTranslationUnit TU = cxcursor::getCursorTU(cursor);
1138 if (!overridden || !num_overridden || !TU)
1145 *static_cast<OverridenCursorsPool*>(TU->OverridenCursorsPool);
1164 CXCursor backRefCursor = MakeCXCursorInvalid(CXCursor_InvalidFile, TU);
1166 assert(cxcursor::getCursorTU(backRefCursor) == TU);
1190 // which has a back-reference to the TU and the vector.
1195 CXTranslationUnit TU = getCursorTU(*overridden);
1197 assert(Vec && TU);
1200 *static_cast<OverridenCursorsPool*>(TU->OverridenCursorsPool);
1231 CXTranslationUnit TU = cxcursor::getCursorTU(C);
1237 return cxtype::MakeCXType(MsgE->getReceiverType(), TU);
1239 return cxtype::MakeCXType(QualType(), TU);