From e329916e5b8b4cfc15c28726e0978015f846c850 Mon Sep 17 00:00:00 2001 From: Andrzej Kotulski Date: Thu, 28 Jan 2016 05:25:02 -0800 Subject: [PATCH] Add basic translation of CXXBindTemporaryExpr Summary: public This is main reason for not translating rocksdb code right now. Deal with it. Reviewed By: dulmarod Differential Revision: D2874446 fb-gh-sync-id: 6f6cf3a --- infer/src/clang/cTrans.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/infer/src/clang/cTrans.ml b/infer/src/clang/cTrans.ml index fe17ad18f..de13c387c 100644 --- a/infer/src/clang/cTrans.ml +++ b/infer/src/clang/cTrans.ml @@ -2119,6 +2119,9 @@ struct compoundLiteralExpr_trans trans_state stmt_info stmt_list expr_info | InitListExpr (stmt_info, stmts, expr_info) -> initListExpr_trans trans_state stmt_info expr_info stmts + | CXXBindTemporaryExpr (stmt_info, stmt_list, expr_info, cxx_bind_temp_expr_info) -> + (* right now we ignore this expression and try to translate the child node *) + parenExpr_trans trans_state stmt_info stmt_list | s -> (Printing.log_stats "\n!!!!WARNING: found statement %s. \nACTION REQUIRED: Translation need to be defined. Statement ignored.... \n" (Ast_utils.string_of_stmt s);