etienneb added inline comments. ================ Comment at: clang-tidy/utils/TypeTraits.cpp:24 @@ -20,2 +23,3 @@ + bool classHasTrivialCopyAndDestroy(QualType Type) { auto *Record = Type->getAsCXXRecordDecl(); ---------------- Should this be lifted to 'type_traits' ?
The same function exists into clang-tidy/utils/TypeTraits.cpp ``` namespace { bool classHasTrivialCopyAndDestroy(QualType Type) { auto *Record = Type->getAsCXXRecordDecl(); return Record && Record->hasDefinition() && !Record->hasNonTrivialCopyConstructor() && !Record->hasNonTrivialDestructor(); } } // namespace ``` Alex, any toughs? ================ Comment at: clang-tidy/utils/TypeTraits.cpp:31 @@ +30,3 @@ + +bool hasDeletedCopyConstructor(QualType Type, ASTContext &Context) { + auto *Record = Type->getAsCXXRecordDecl(); ---------------- aaron.ballman wrote: > No need to pass in `Context` any longer. ditto, to be lifted or not? http://reviews.llvm.org/D20170 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits