[PATCH] D121465: WIP: [clang][modules] Do not report declarations without linkage as ambiguous
Jan Svoboda via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 6 05:13:20 PDT 2022
jansvoboda11 marked 2 inline comments as done.
jansvoboda11 added a comment.
In D121465#3384825 <https://reviews.llvm.org/D121465#3384825>, @vsapsai wrote:
> My concern with this approach is I'm not sure if `isEquivalentInternalLinkageDeclaration` is a desired long-term solution for anonymous C++ enums.
Is there anything suggesting it's not?
================
Comment at: clang/test/Modules/ambiguous-anonymous-enum-lookup.m.cpp:38
+
+int testReferencingAnonymousEnumConstant() {
+ return kAnonymousEnumValue; // expected-no-diagnostics
----------------
vsapsai wrote:
> Should we test also non-equivalent enums or is it tested somewhere else?
I believe that's tested in `redefinition-c-tagtypes.m`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121465/new/
https://reviews.llvm.org/D121465
More information about the cfe-commits
mailing list