More stringently verify expected alignment of fields in hidl compound types.
Bug: 33846034
Test: make
Change-Id: Iaadddeabe04e0c721aa9398a1bb748fd6adcac51
diff --git a/Type.cpp b/Type.cpp
index 585afc9..8ad1ce5 100644
--- a/Type.cpp
+++ b/Type.cpp
@@ -450,8 +450,13 @@
return true;
}
-void Type::getAlignmentAndSize(size_t *, size_t *) const {
- CHECK(!"Should not be here");
+void Type::getAlignmentAndSize(
+ size_t * /* align */, size_t * /* size */) const {
+ CHECK(!"Should not be here.");
+}
+
+bool Type::containsPointer() const {
+ return false;
}
void Type::appendToExportedTypesVector(