Add a check for old style class declarations

Change-Id: Id827c8d234e966c0520166842d3cd19efc9de40d