Lines Matching refs:Const
41 static CXCursorKind GetCursorKind(const Attr *A) {
54 case attr::Const: return CXCursor_ConstAttr;
69 CXCursor cxcursor::MakeCXCursor(const Attr *A, const Decl *Parent,
76 CXCursor cxcursor::MakeCXCursor(const Decl *D, CXTranslationUnit TU,
105 CXCursor cxcursor::MakeCXCursor(const Stmt *S, const Decl *Parent,
468 if (const ImplicitParamDecl *IPD =
470 if (const ObjCMethodDecl *MD =
636 std::pair<const ObjCInterfaceDecl *, SourceLocation>
639 return std::make_pair(static_cast<const ObjCInterfaceDecl *>(C.data[0]),
643 CXCursor cxcursor::MakeCursorObjCProtocolRef(const ObjCProtocolDecl *Proto,
652 std::pair<const ObjCProtocolDecl *, SourceLocation>
655 return std::make_pair(static_cast<const ObjCProtocolDecl *>(C.data[0]),
659 CXCursor cxcursor::MakeCursorObjCClassRef(const ObjCInterfaceDecl *Class,
671 std::pair<const ObjCInterfaceDecl *, SourceLocation>
674 return std::make_pair(static_cast<const ObjCInterfaceDecl *>(C.data[0]),
678 CXCursor cxcursor::MakeCursorTypeRef(const TypeDecl *Type, SourceLocation Loc,
686 std::pair<const TypeDecl *, SourceLocation>
689 return std::make_pair(static_cast<const TypeDecl *>(C.data[0]),
693 CXCursor cxcursor::MakeCursorTemplateRef(const TemplateDecl *Template,
702 std::pair<const TemplateDecl *, SourceLocation>
705 return std::make_pair(static_cast<const TemplateDecl *>(C.data[0]),
709 CXCursor cxcursor::MakeCursorNamespaceRef(const NamedDecl *NS,
720 std::pair<const NamedDecl *, SourceLocation>
723 return std::make_pair(static_cast<const NamedDecl *>(C.data[0]),
727 CXCursor cxcursor::MakeCursorVariableRef(const VarDecl *Var, SourceLocation Loc,
736 std::pair<const VarDecl *, SourceLocation>
739 return std::make_pair(static_cast<const VarDecl *>(C.data[0]),
743 CXCursor cxcursor::MakeCursorMemberRef(const FieldDecl *Field, SourceLocation Loc,
752 std::pair<const FieldDecl *, SourceLocation>
755 return std::make_pair(static_cast<const FieldDecl *>(C.data[0]),
759 CXCursor cxcursor::MakeCursorCXXBaseSpecifier(const CXXBaseSpecifier *B,
765 const CXXBaseSpecifier *cxcursor::getCursorCXXBaseSpecifier(CXCursor C) {
767 return static_cast<const CXXBaseSpecifier*>(C.data[0]);
788 CXCursor cxcursor::MakeMacroDefinitionCursor(const MacroDefinitionRecord *MI,
794 const MacroDefinitionRecord *cxcursor::getCursorMacroDefinition(CXCursor C) {
796 return static_cast<const MacroDefinitionRecord *>(C.data[0]);
813 const IdentifierInfo *cxcursor::MacroExpansionCursor::getName() const {
818 const MacroDefinitionRecord *
819 cxcursor::MacroExpansionCursor::getDefinition() const {
824 SourceRange cxcursor::MacroExpansionCursor::getSourceRange() const {
836 const InclusionDirective *cxcursor::getCursorInclusionDirective(CXCursor C) {
838 return static_cast<const InclusionDirective *>(C.data[0]);
850 std::pair<const LabelStmt *, SourceLocation>
853 return std::make_pair(static_cast<const LabelStmt *>(C.data[0]),
857 CXCursor cxcursor::MakeCursorOverloadedDeclRef(const OverloadExpr *E,
869 CXCursor cxcursor::MakeCursorOverloadedDeclRef(const Decl *D,
903 const Decl *cxcursor::getCursorDecl(CXCursor Cursor) {
904 return static_cast<const Decl *>(Cursor.data[0]);
907 const Expr *cxcursor::getCursorExpr(CXCursor Cursor) {
911 const Stmt *cxcursor::getCursorStmt(CXCursor Cursor) {
917 return static_cast<const Stmt *>(Cursor.data[1]);
920 const Attr *cxcursor::getCursorAttr(CXCursor Cursor) {
921 return static_cast<const Attr *>(Cursor.data[1]);
924 const Decl *cxcursor::getCursorParentDecl(CXCursor Cursor) {
925 return static_cast<const Decl *>(Cursor.data[0]);
946 const NamedDecl *D = dyn_cast_or_null<NamedDecl>(getCursorDecl(cursor));
951 SmallVector<const NamedDecl *, 8> OverDecls;
954 for (SmallVectorImpl<const NamedDecl *>::iterator
1008 const Expr *E = getCursorExpr(cursor);
1010 if (const CXXUnresolvedConstructExpr *
1013 } else if (const CXXTemporaryObjectExpr *Tmp =
1026 if (const ElaboratedType *ElabT = Ty->getAs<ElaboratedType>()) {
1032 if (const TypedefType *Typedef = Ty->getAs<TypedefType>())
1034 if (const TagType *Tag = Ty->getAs<TagType>())
1036 if (const TemplateTypeParmType *TemplP = Ty->getAs<TemplateTypeParmType>())
1070 const Decl *D = cxcursor::getCursorDecl(C);
1071 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D))
1073 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D))
1078 const Expr *E = cxcursor::getCursorExpr(C);
1079 if (const CallExpr *CE = dyn_cast<CallExpr>(E)) {
1089 const Decl *D = cxcursor::getCursorDecl(C);
1090 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D)) {
1094 } else if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) {
1102 const Expr *E = cxcursor::getCursorExpr(C);
1103 if (const CallExpr *CE = dyn_cast<CallExpr>(E)) {
1120 const FunctionDecl *FD = llvm::dyn_cast_or_null<clang::FunctionDecl>(
1126 const FunctionTemplateSpecializationInfo* SpecInfo =
1158 const FunctionDecl *FD = llvm::dyn_cast_or_null<clang::FunctionDecl>(
1164 const FunctionTemplateSpecializationInfo* SpecInfo =
1272 static inline unsigned getHashValue(const CXCursor &cursor) {
1273 return llvm::DenseMapInfo<std::pair<const void *, const void *> >
1276 static inline bool isEqual(const CXCursor &x, const CXCursor &y) {
1318 const Decl *decl = getCursorDecl(cursor);
1319 if (const NamedDecl *namedDecl = dyn_cast_or_null<NamedDecl>(decl)) {
1332 const MacroDefinitionRecord *definition = getCursorMacroDefinition(cursor);
1333 const IdentifierInfo *MacroInfo = definition->getName();
1451 const Expr *E = nullptr;
1457 if (const ObjCMessageExpr *MsgE = dyn_cast<ObjCMessageExpr>(E)) {
1468 const MemberExpr *ME = nullptr;
1471 else if (const CallExpr *CE = dyn_cast<CallExpr>(E))
1475 if (const CXXMethodDecl *
1485 const Expr *E = nullptr;
1489 if (const ObjCMessageExpr *MsgE = dyn_cast_or_null<ObjCMessageExpr>(E))