Home
last modified time | relevance | path

Searched refs:enumerator_decl (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangPersistentVariables.cpp94 for (clang::EnumConstantDecl *enumerator_decl : enum_decl->enumerators()) { in RegisterPersistentDecl()
95 p = {enumerator_decl, ctx}; in RegisterPersistentDecl()
97 ConstString(enumerator_decl->getNameAsString()).GetCString(), p)); in RegisterPersistentDecl()
/llvm-project-15.0.7/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp8401 clang::EnumConstantDecl *enumerator_decl = in AddEnumerationValueToEnumerationType() local
8403 enumerator_decl->setDeclContext(enutype->getDecl()); in AddEnumerationValueToEnumerationType()
8405 enumerator_decl->setDeclName(&getASTContext().Idents.get(name)); in AddEnumerationValueToEnumerationType()
8406 enumerator_decl->setType(clang::QualType(enutype, 0)); in AddEnumerationValueToEnumerationType()
8407 enumerator_decl->setInitVal(value); in AddEnumerationValueToEnumerationType()
8408 SetMemberOwningModule(enumerator_decl, enutype->getDecl()); in AddEnumerationValueToEnumerationType()
8410 if (!enumerator_decl) in AddEnumerationValueToEnumerationType()
8413 enutype->getDecl()->addDecl(enumerator_decl); in AddEnumerationValueToEnumerationType()
8415 VerifyDecl(enumerator_decl); in AddEnumerationValueToEnumerationType()
8416 return enumerator_decl; in AddEnumerationValueToEnumerationType()