sanity: Warn when using __OBJC__ in non-Objective-C/C++ source files


The define will never be defined (unless someone explicitly passes
-x to change the language the compiler uses, but we don't do that),
so using the define in C/C++ source files is most likely an error
and will result in dead code.

Change-Id: I1eb578b76b0294ce415fce67e6665388812ae651
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commitf666e61f5cc8a55855591df926d64747a1d586fb
parenta9592e2bdefd97be8544f9319fe85b56258d0d94
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>
commit timeWed, 19 May 2021 16:11:06 +0000