[PATCH] D55225: [AST] Assert that no type class is polymorphic
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 3 10:31:36 PST 2018
aaron.ballman added inline comments.
================
Comment at: lib/AST/Type.cpp:299
+ static_assert(!std::is_polymorphic<CLASS##Type>::value, \
+ #CLASS "Type should not be polymorphic!");
+#include "clang/AST/TypeNodes.def"
----------------
This will squish your class name and error text together. I think you need a whitespace before "Type" and make that lowercase.
================
Comment at: lib/AST/Type.cpp:301
+#include "clang/AST/TypeNodes.def"
+
QualType Type::getLocallyUnqualifiedSingleStepDesugaredType() const {
----------------
I'd feel more comfortable if there was a `#undef TYPE` here.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55225/new/
https://reviews.llvm.org/D55225
More information about the cfe-commits
mailing list