From 1349492e578420e2bb68b8041b751a2bec433547 Mon Sep 17 00:00:00 2001 From: Andrzej Kotulski Date: Tue, 1 Dec 2015 05:05:18 -0800 Subject: [PATCH] Update facebook-clang-plugins version Summary: public New version: dumps template function specializations does some changes to setup/makefiles to make them better Reviewed By: jvillard Differential Revision: D2707355 fb-gh-sync-id: 0213138 --- facebook-clang-plugins | 2 +- infer/src/clang/cAstProcessor.ml | 4 ++-- infer/src/clang/cFrontend.ml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/facebook-clang-plugins b/facebook-clang-plugins index 8ae673bc2..48b57c1e8 160000 --- a/facebook-clang-plugins +++ b/facebook-clang-plugins @@ -1 +1 @@ -Subproject commit 8ae673bc2714af3d8b377676f22b8ba1bc91073b +Subproject commit 48b57c1e897bf70fb2aab68e95628c4c7de42570 diff --git a/infer/src/clang/cAstProcessor.ml b/infer/src/clang/cAstProcessor.ml index f6440de26..6d0905986 100644 --- a/infer/src/clang/cAstProcessor.ml +++ b/infer/src/clang/cAstProcessor.ml @@ -34,7 +34,7 @@ let decl_get_sub_decls decl = | NamespaceDecl (_, _, decl_list, _, _) -> decl_list | ClassTemplateDecl (_, _, class_template_decl_info) -> - class_template_decl_info.ctdi_specializations + class_template_decl_info.tdi_specializations | _ -> [] @@ -66,7 +66,7 @@ let decl_set_sub_decls decl decl_list' = | NamespaceDecl (decl_info, name, decl_list, decl_context_info, namespace_decl_info) -> NamespaceDecl (decl_info, name, decl_list', decl_context_info, namespace_decl_info) | ClassTemplateDecl (decl_info, name, class_template_decl_info) -> - let class_template_decl_info' = { ctdi_specializations = decl_list' } in + let class_template_decl_info' = { tdi_specializations = decl_list' } in ClassTemplateDecl (decl_info, name, class_template_decl_info') | _ -> decl diff --git a/infer/src/clang/cFrontend.ml b/infer/src/clang/cFrontend.ml index 57bd08d4f..e6555fce0 100644 --- a/infer/src/clang/cFrontend.ml +++ b/infer/src/clang/cFrontend.ml @@ -100,7 +100,7 @@ let rec translate_one_declaration tenv cg cfg parent_dec dec = | NamespaceDecl (decl_info, name_info, decl_list, decl_context_info, _) -> IList.iter (translate_one_declaration tenv cg cfg dec) decl_list | ClassTemplateDecl (decl_info, named_decl_info, class_template_decl_info) -> - let decl_list = class_template_decl_info.Clang_ast_t.ctdi_specializations in + let decl_list = class_template_decl_info.Clang_ast_t.tdi_specializations in IList.iter (translate_one_declaration tenv cg cfg dec) decl_list | dec -> ()