[PATCH] D100276: [clang] p1099 using enum part 1

Nathan Sidwell via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 21 10:06:09 PDT 2021


urnathan updated this revision to Diff 339293.
urnathan added a comment.

Updated to fix formatting etc (pretty sure I got clang-format to work this time).  I changed the pre-c++20 behaviour to be a warning along the lines you suggested.  Trying to move the qualifier checking until after generating the shadow decls died horribly -- the shadow generation presumes the context is sane :(

As mentioned, I intend updating docs and feature macro once the second half is done.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100276/new/

https://reviews.llvm.org/D100276

Files:
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/include/clang/Sema/Sema.h
  clang/lib/Sema/SemaDeclCXX.cpp
  clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
  clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p3.cpp
  clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p7-cxx20.cpp
  clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p7.cpp
  clang/test/SemaCXX/enum-scoped.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100276.339293.patch
Type: text/x-patch
Size: 15999 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210421/f80d2a16/attachment-0001.bin>


More information about the cfe-commits mailing list