<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi, all. I'm looking at distinguishing the following two enum declarations for <a href="https://bugs.swift.org/browse/SR-2511" class="">Swift reasons</a>:<div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class="">enum {</div><div class=""> Constant1,</div><div class=""> Constant2</div><div class="">};</div><div class=""><br class=""></div><div class="">enum {</div><div class=""> ConstantA,</div><div class=""> ConstantB</div><div class="">} someGlobalSetting;</div></blockquote><div class=""><br class=""></div><div class="">It looks like Clang makes this possible, which is nice! However, it looks like it's possible via <i class="">two different mechanisms,</i> which is confusing. TagDecl::isFreeStanding seems to track whether the tag declarations was <i class="">parsed</i> as part of a declarator, while TagDecl::isEmbeddedInDeclarator tracks whether a part of a declarator turned out to be a tag declaration. But those seem to be equivalent properties to me. Am I missing something here?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Jordan</div></body></html>