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

Nathan Sidwell via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 21 05:01:49 PDT 2021


urnathan added a comment.

thanks for the comments.  My plan wrt documentation was to address that (and the feature macro) once the patches are in.



================
Comment at: clang/lib/Sema/SemaDeclCXX.cpp:12353
+      ED = R->getAsSingle<EnumConstantDecl>();
+    else if (UD && UD->shadow_size () == 1)
+      ED = dyn_cast<EnumConstantDecl>(UD->shadow_begin()->getTargetDecl());
----------------
bruno wrote:
> -> `UD->shadow_size()`
Hm, I wonder what happened, I was pretty sure I ran git clang-format.


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

https://reviews.llvm.org/D100276



More information about the cfe-commits mailing list