fixed consequence of these changes in clang. llvm-svn: 42600
semantic checks for class and protocol declarations. Test cases are good indications of kind of checking being done in this patch. llvm-svn: 42311