gribozavr marked 4 inline comments as done. gribozavr added inline comments.
================ Comment at: clang/include/clang/AST/DeclBase.h:374 + Decl(const Decl&) = delete; + Decl(Decl &&) = delete; + Decl &operator=(const Decl&) = delete; ---------------- ilya-biryukov wrote: > NIT: move constructors and assignments won't be generated if copy is deleted, > so this is redundant. > However, feel free to keep it if you want to be more explicit. I feel like it is better to have the API explicitly spelled out. ================ Comment at: clang/include/clang/AST/Stmt.h:1057 + Stmt() = delete; Stmt(const Stmt &) = delete; ---------------- ilya-biryukov wrote: > NIT: Move the deleted declarations to the start of the class? > Or move the deleted declarations in other classes to the first public section? > > (For consistency) I put these new declarations close to the "primary" constructor. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62187/new/ https://reviews.llvm.org/D62187 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits