v.g.vassilev added a comment.

I do not feel qualified enough to review this patch but I added few minor 
comments.



================
Comment at: include/clang/AST/DeclCXX.h:827
+    return data().DefaultedCopyConstructorIsDeleted;
+  }
+  /// \brief \c true if a defaulted move constructor for this class would be
----------------
Is there a reason for not keeping the default (for the file) 1 empty line 
between methods? Looks like if we add one new line before and after 
`hasSimpleMoveAssignment` is will be all consistent.


================
Comment at: lib/Sema/SemaDeclCXX.cpp:5731
+/// registers, per C++ [class.temporary]p3.
+static bool computeCanPassInRegisters(Sema &S, CXXRecordDecl *D) {
+  if (D->isDependentType() || D->isInvalidDecl())
----------------
It would be very useful if we somehow assert if this function is called before 
the class triviality is computed?


Repository:
  rL LLVM

https://reviews.llvm.org/D35056



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

Reply via email to