reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
4488 if (clang_isTranslationUnit(C.kind)) 4489 return clang_getTranslationUnitSpelling(getCursorTU(C)); 4491 if (clang_isReference(C.kind)) { 4492 switch (C.kind) { 4494 const ObjCInterfaceDecl *Super = getCursorObjCSuperClassRef(C).first; 4498 const ObjCInterfaceDecl *Class = getCursorObjCClassRef(C).first; 4502 const ObjCProtocolDecl *OID = getCursorObjCProtocolRef(C).first; 4507 const CXXBaseSpecifier *B = getCursorCXXBaseSpecifier(C); 4511 const TypeDecl *Type = getCursorTypeRef(C).first; 4514 return cxstring::createDup(getCursorContext(C).getTypeDeclType(Type). 4518 const TemplateDecl *Template = getCursorTemplateRef(C).first; 4525 const NamedDecl *NS = getCursorNamespaceRef(C).first; 4532 const FieldDecl *Field = getCursorMemberRef(C).first; 4539 const LabelStmt *Label = getCursorLabelRef(C).first; 4546 OverloadedDeclRefStorage Storage = getCursorOverloadedDeclRef(C).first; 4562 const VarDecl *Var = getCursorVariableRef(C).first; 4573 if (clang_isExpression(C.kind)) { 4574 const Expr *E = getCursorExpr(C); 4576 if (C.kind == CXCursor_ObjCStringLiteral || 4577 C.kind == CXCursor_StringLiteral) { 4590 const Decl *D = getDeclFromExpr(getCursorExpr(C)); 4596 if (clang_isStatement(C.kind)) { 4597 const Stmt *S = getCursorStmt(C); 4604 if (C.kind == CXCursor_MacroExpansion) 4605 return cxstring::createRef(getCursorMacroExpansion(C).getName() 4608 if (C.kind == CXCursor_MacroDefinition) 4609 return cxstring::createRef(getCursorMacroDefinition(C)->getName() 4612 if (C.kind == CXCursor_InclusionDirective) 4613 return cxstring::createDup(getCursorInclusionDirective(C)->getFileName()); 4615 if (clang_isDeclaration(C.kind)) 4616 return getDeclSpelling(getCursorDecl(C)); 4618 if (C.kind == CXCursor_AnnotateAttr) { 4619 const AnnotateAttr *AA = cast<AnnotateAttr>(cxcursor::getCursorAttr(C)); 4623 if (C.kind == CXCursor_AsmLabelAttr) { 4624 const AsmLabelAttr *AA = cast<AsmLabelAttr>(cxcursor::getCursorAttr(C)); 4628 if (C.kind == CXCursor_PackedAttr) { 4632 if (C.kind == CXCursor_VisibilityAttr) { 4633 const VisibilityAttr *AA = cast<VisibilityAttr>(cxcursor::getCursorAttr(C));