[PATCH] D119051: Extend the C++03 definition of POD to include defaulted functions

David Blaikie via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 12 13:35:23 PDT 2022


dblaikie added inline comments.


================
Comment at: clang/include/clang/Basic/TargetInfo.h:1569
 
+  virtual bool areDefaultedSMFStillPOD(const LangOptions&) const;
+
----------------
rnk wrote:
> Please add a doc comment for this, with some history about how previously explicitly defaulting certain special members would make types non-POD, and that changing what is POD can change record layout, so some targets return false to opt for the old, stable behavior.
Done


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119051



More information about the cfe-commits mailing list