Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash when checking templated base class for client_layout attribute
When checking a client namespace class for the client_layout attribute, we assumed that base classes are of type `CXXRecordDecl`. This is not always the case. For example, we would get a crash when the base class is templated: ``` namespace client { template<class T> class [[cheerp::client_layout]] Base {}; template<class T> class Derived : public Base<T> {}; } ``` The client_layout check is updated to also handle templated base classes, and to return false for other unhandled types. So we get the normal missing client layout diagnostic for unhandled types instead of a segmentation fault.
- Loading branch information