Lines Matching refs:enum_decl
2327 EnumDecl *enum_decl = EnumDecl::Create( in CreateEnumerationType() local
2334 if (enum_decl) { in CreateEnumerationType()
2336 decl_ctx->addDecl(enum_decl); in CreateEnumerationType()
2339 enum_decl->setIntegerType(ClangUtil::GetQualType(integer_clang_type)); in CreateEnumerationType()
2341 enum_decl->setAccess(AS_public); // TODO respect what's in the debug info in CreateEnumerationType()
2343 return CompilerType(ast, ast->getTagDeclType(enum_decl)); in CreateEnumerationType()
5824 const clang::EnumDecl *enum_decl = enum_type->getDecl(); in ForEachEnumerator() local
5825 if (enum_decl) { in ForEachEnumerator()
5827 enum_decl->getIntegerType().getAsOpaquePtr()); in ForEachEnumerator()
5830 for (enum_pos = enum_decl->enumerator_begin(), in ForEachEnumerator()
5831 enum_end_pos = enum_decl->enumerator_end(); in ForEachEnumerator()
8733 clang::EnumDecl *enum_decl = in GetHasExternalStorage() local
8735 if (enum_decl) in GetHasExternalStorage()
8736 return enum_decl->hasExternalLexicalStorage() || in GetHasExternalStorage()
8737 enum_decl->hasExternalVisibleStorage(); in GetHasExternalStorage()
8804 clang::EnumDecl *enum_decl = in SetHasExternalStorage() local
8806 if (enum_decl) { in SetHasExternalStorage()
8807 enum_decl->setHasExternalLexicalStorage(has_extern); in SetHasExternalStorage()
8808 enum_decl->setHasExternalVisibleStorage(has_extern); in SetHasExternalStorage()
8915 clang::EnumDecl *enum_decl = enutype->getDecl(); in CompleteTagDeclarationDefinition() local
8917 if (enum_decl) { in CompleteTagDeclarationDefinition()
8918 if (!enum_decl->isCompleteDefinition()) { in CompleteTagDeclarationDefinition()
8927 QualType integer_type(enum_decl->getIntegerType()); in CompleteTagDeclarationDefinition()
8935 if (ast->getTypeSize(enum_decl->getIntegerType()) < in CompleteTagDeclarationDefinition()
8937 if (enum_decl->getIntegerType()->isSignedIntegerType()) in CompleteTagDeclarationDefinition()
8942 promotion_qual_type = enum_decl->getIntegerType(); in CompleteTagDeclarationDefinition()
8944 enum_decl->completeDefinition(enum_decl->getIntegerType(), in CompleteTagDeclarationDefinition()
9023 clang::EnumDecl *enum_decl = enutype->getDecl(); in GetEnumerationIntegerType() local
9024 if (enum_decl) in GetEnumerationIntegerType()
9025 return CompilerType(getASTContext(), enum_decl->getIntegerType()); in GetEnumerationIntegerType()
9256 const clang::EnumDecl *enum_decl = enutype->getDecl(); in DumpValue() local
9257 assert(enum_decl); in DumpValue()
9262 for (enum_pos = enum_decl->enumerator_begin(), in DumpValue()
9263 enum_end_pos = enum_decl->enumerator_end(); in DumpValue()
9512 const clang::EnumDecl *enum_decl = enutype->getDecl(); in DumpTypeValue() local
9513 assert(enum_decl); in DumpTypeValue()
9520 for (enum_pos = enum_decl->enumerator_begin(), in DumpTypeValue()
9521 enum_end_pos = enum_decl->enumerator_end(); in DumpTypeValue()
9534 for (enum_pos = enum_decl->enumerator_begin(), in DumpTypeValue()
9535 enum_end_pos = enum_decl->enumerator_end(); in DumpTypeValue()
9785 clang::EnumDecl *enum_decl = in DumpTypeName() local
9787 if (enum_decl) { in DumpTypeName()
9788 printf("enum %s", enum_decl->getName().str().c_str()); in DumpTypeName()