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.
The source file calls this CallExprLoc, I think you forgot to rename it here.