njames93 added inline comments.

================
Comment at: 
clang-tools-extra/clangd/refactor/tweaks/MemberwiseConstructor.cpp:203
+      return CopyRef;
+    return Fail;
+  }
----------------
If C is default constructible, would it be nice to skip here instead of failing?


================
Comment at: 
clang-tools-extra/clangd/refactor/tweaks/MemberwiseConstructor.cpp:211
+    if (Fields.size() == 1)
+      OS << "explicit ";
+    OS << Class->getName() << "(";
----------------
Some codebases may not want these to be explicit, would it be wiser to use 
config to control this?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D116514

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to