From 9f65b0d3fa857e92cb104e7a593c230a44c541c7 Mon Sep 17 00:00:00 2001 From: Ryan Rhee Date: Thu, 4 May 2017 12:13:38 -0700 Subject: [PATCH] [componentkit] Whitelist CKComponentContext Reviewed By: adamjernst Differential Revision: D4978040 fbshipit-source-id: c93c9ae --- infer/src/clang/ComponentKit.ml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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, _, _, _, _, _, _) ->