[clang] unbreak build, factorise unimplemented constructs

Summary: .

Reviewed By: mbouaziz, ngorogiannis

Differential Revision: D7843584

fbshipit-source-id: 23896dd
master
Jules Villard 7 years ago committed by Facebook Github Bot
parent de6ee858a8
commit 1a0ba42a3b

@ -3307,12 +3307,6 @@ module CTrans_funct (F : CModule_type.CFrontend) : CModule_type.CTranslation = s
sub-expressions *) sub-expressions *)
| ObjCAvailabilityCheckExpr (_, _, expr_info, _) -> | ObjCAvailabilityCheckExpr (_, _, expr_info, _) ->
trans_into_undefined_expr trans_state expr_info trans_into_undefined_expr trans_state expr_info
| ExtVectorElementExpr (stmt_info, stmts, _) | ShuffleVectorExpr (stmt_info, stmts, _) ->
skip_unimplemented
~reason:
(Printf.sprintf "unimplemented construct: %s"
(Clang_ast_proj.get_stmt_kind_string instr))
trans_state stmt_info stmts
(* Infer somehow ended up in templated non instantiated code - right now (* Infer somehow ended up in templated non instantiated code - right now
it's not supported and failure in those cases is expected. *) it's not supported and failure in those cases is expected. *)
| SubstNonTypeTemplateParmExpr _ | SubstNonTypeTemplateParmExpr _
@ -3352,6 +3346,7 @@ module CTrans_funct (F : CModule_type.CFrontend) : CModule_type.CTranslation = s
| DesignatedInitExpr _ | DesignatedInitExpr _
| DesignatedInitUpdateExpr _ | DesignatedInitUpdateExpr _
| ExpressionTraitExpr _ | ExpressionTraitExpr _
| ExtVectorElementExpr _
| FunctionParmPackExpr _ | FunctionParmPackExpr _
| ImaginaryLiteral _ | ImaginaryLiteral _
| MSPropertyRefExpr _ | MSPropertyRefExpr _
@ -3418,13 +3413,13 @@ module CTrans_funct (F : CModule_type.CFrontend) : CModule_type.CTranslation = s
| SEHFinallyStmt _ | SEHFinallyStmt _
| SEHLeaveStmt _ | SEHLeaveStmt _
| SEHTryStmt _ | SEHTryStmt _
| ShuffleVectorExpr _
| DefaultStmt _ -> | DefaultStmt _ ->
L.(debug Capture Verbose) skip_unimplemented
"Skipping translation for kind %s: %a@\n@" ~reason:
(Clang_ast_proj.get_stmt_kind_string instr) (Printf.sprintf "unimplemented construct: %s"
(Pp.to_string ~f:Clang_ast_j.string_of_stmt) (Clang_ast_proj.get_stmt_kind_string instr))
instr ; trans_state stmt_info stmts
skip_unimplemented trans_state stmts
(** Function similar to instruction function, but it takes C++ constructor initializer as (** Function similar to instruction function, but it takes C++ constructor initializer as

Loading…
Cancel
Save