[PATCH] D154893: [Clang] Fix some triviality computations

Roy Jacobson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 23 12:45:12 PDT 2023


royjacobson added inline comments.


================
Comment at: clang/include/clang/AST/DeclCXX.h:1269
   /// Determine whether this class has a non-trivial copy constructor
   /// (C++ [class.copy]p6, C++11 [class.copy]p12)
   bool hasNonTrivialCopyConstructor() const {
----------------
shafik wrote:
> These references looks like they need to be updated. Same below and it looks like `hasNonTrivialCopyConstructorForCall` is missing references all together.
TBH I don't think those functions actually need references to the standard? Whether the actual member functions are trivial or not is already calculated before. Do you think I can just remove it? :)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D154893



More information about the cfe-commits mailing list