diff --git a/infer/src/clang/ComponentKit.ml b/infer/src/clang/ComponentKit.ml index 6ff323894..2b3cc5a7c 100644 --- a/infer/src/clang/ComponentKit.ml +++ b/infer/src/clang/ComponentKit.ml @@ -96,7 +96,12 @@ let mutable_local_vars_advice context an = | _ -> None in let is_of_whitelisted_type qual_type = - let cpp_whitelist = ["CKComponentScope"; "FBTrackingNodeScope"; "FBTrackingCodeScope"] in + let cpp_whitelist = [ + "CKComponentScope"; + "FBTrackingNodeScope"; + "FBTrackingCodeScope"; + "CKComponentContext" + ] in let objc_whitelist = ["NSError"] in match get_referenced_type qual_type with | Some CXXRecordDecl (_, ndi, _, _, _, _, _, _) ->