Before this change, calling an ObjC method from a C function marked with the enforce_tcb attribute would not produce a warning.
After this change, we'll get a proper TCB warning when calling an ObjC method from a TCB. Also, this change enables ObjC methods to participate in a TCB.
- Allow ObjC Methods to be decorated with the enforce_tcb attribute
- Change the CheckTCBEnforcement() function to accept a NamedDecl (instead of the more specialized FunctionDecl) and a SourceLocation (instead of a CallExpr).
- Call CheckTCBEnforcement() from CheckObjCMethodCall()
- Add a test.
Maybe Call[Expr]Loc or InvocationLoc so that we're clear what the expression is?