[PATCH] D149961: [Sema] Mark ineligibility of special member functions correctly

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 5 08:47:58 PDT 2023


shafik added a comment.

Thank you for fixing this so quickly!



================
Comment at: clang/lib/Sema/SemaTemplateInstantiateDecl.cpp:2750
 
+  if (auto *Constructor = dyn_cast<CXXConstructorDecl>(Method)) {
+    if (Constructor->isDefaultConstructor() ||
----------------
I have look at this function a few times and it is not obvious to me why this is the right thing to do once we get to this point, Can you add some explanatory comments and maybe a standard reference. This is a large function and probably could use a lot more explanatory comments.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D149961



More information about the cfe-commits mailing list