From 957b67fa878f297f12a9bdb3dcf13fd962856e2a Mon Sep 17 00:00:00 2001 From: Andrzej Kotulski Date: Wed, 22 Feb 2017 02:33:25 -0800 Subject: [PATCH] [clang] Update fcp plugin Reviewed By: dulmarod Differential Revision: D4591101 fbshipit-source-id: babcaea --- facebook-clang-plugins | 2 +- infer/src/clang/CType_decl.ml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/facebook-clang-plugins b/facebook-clang-plugins index 11fd3f213..476112cbc 160000 --- a/facebook-clang-plugins +++ b/facebook-clang-plugins @@ -1 +1 @@ -Subproject commit 11fd3f213599a839df6fe3868116ff65e85bd543 +Subproject commit 476112cbc79aa320afdb4dbf46b79c21432b4717 diff --git a/infer/src/clang/CType_decl.ml b/infer/src/clang/CType_decl.ml index f125a2cfe..72d6f7907 100644 --- a/infer/src/clang/CType_decl.ml +++ b/infer/src/clang/CType_decl.ml @@ -129,7 +129,9 @@ let get_translate_as_friend_decl decl_list = Option.value_map ~f:is_translate_as_friend_name ~default:false named_decl_tuple_opt | None -> false in match get_friend_decl_opt (List.find_exn ~f:is_translate_as_friend_decl decl_list) with - | Some (Clang_ast_t.ClassTemplateSpecializationDecl (_, _, _, _, _, _, _, _, [`Type t_ptr])) -> + | Some + (Clang_ast_t.ClassTemplateSpecializationDecl + (_, _, _, _, _, _, _, _, {tsi_specialization_args=[`Type t_ptr]})) -> Some t_ptr | _ -> None | exception Not_found -> None