mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Introduce EnumDecl::isCDeclEnum and isCCompatibleEnum
This commit is contained in:
@@ -538,8 +538,7 @@ public:
|
||||
}
|
||||
|
||||
void forwardDeclare(const EnumDecl *ED) {
|
||||
assert(ED->isObjC() || ED->getAttrs().getAttribute<CDeclAttr>() ||
|
||||
ED->hasClangNode());
|
||||
assert(ED->isCCompatibleEnum() || ED->hasClangNode());
|
||||
|
||||
forwardDeclare(ED, [&]{
|
||||
if (ED->getASTContext().LangOpts.hasFeature(Feature::CDecl)) {
|
||||
|
||||
Reference in New Issue
Block a user