Update fcp to have newer clang

Summary:
Make infer run with clang 3.7.0. Small changes are due to differences
in output of clang

NOTE: this diff will require recompiling clang (it takes time)
master
Andrzej Kotulski 9 years ago
parent bd48a7d0dd
commit 4dac490e8d

@ -1 +1 @@
Subproject commit 331accb43f98e4c567a925def3c6e3b5302c781d Subproject commit 18f2b1d27208f42cb9a845ef917be84e8253fb92

@ -136,7 +136,7 @@ let handleFailureInFunction = "handleFailureInFunction:file:lineNumber:descripti
let fbAssertWithSignalAndLogFunctionHelper = "FBAssertWithSignalAndLogFunctionHelper" let fbAssertWithSignalAndLogFunctionHelper = "FBAssertWithSignalAndLogFunctionHelper"
let nonnull_attribute = "__nonnull" let nonnull_attribute = "_Nonnull"
let pseudo_object_type = "<pseudo-object type>" let pseudo_object_type = "<pseudo-object type>"

@ -243,7 +243,7 @@ struct
(*TODO: take the attributes into account too. To be done after we get the attribute's arguments. *) (*TODO: take the attributes into account too. To be done after we get the attribute's arguments. *)
let is_type_nonnull qt attributes = let is_type_nonnull qt attributes =
Utils.string_is_prefix CFrontend_config.nonnull_attribute qt.Clang_ast_t.qt_raw Utils.string_contains CFrontend_config.nonnull_attribute qt.Clang_ast_t.qt_raw
let pointer_counter = ref 0 let pointer_counter = ref 0

@ -113,7 +113,7 @@ and sil_type_of_c_type translate_decl tenv c_type =
| LValueReferenceType (type_info, type_ptr) -> | LValueReferenceType (type_info, type_ptr) ->
let typ = qual_type_ptr_to_sil_type translate_decl tenv type_ptr in let typ = qual_type_ptr_to_sil_type translate_decl tenv type_ptr in
Sil.Tptr (typ, Sil.Pk_reference) Sil.Tptr (typ, Sil.Pk_reference)
| AttributedType type_info -> | AttributedType (type_info, _) ->
(match type_info.Clang_ast_t.ti_desugared_type with (match type_info.Clang_ast_t.ti_desugared_type with
| Some type_ptr -> | Some type_ptr ->
(match Ast_utils.get_type type_ptr with (match Ast_utils.get_type type_ptr with

Loading…
Cancel
Save