Skip to content

Commit 89ecc26

Browse files
committed
transpile: enable --reorganize-definitions by default
1 parent e17cbec commit 89ecc26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

c2rust/src/bin/c2rust-transpile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ struct Args {
125125
reduce_type_annotations: bool,
126126

127127
/// Output file in such a way that the refactoring tool can deduplicate code
128-
#[clap(short = 'r', long)]
128+
#[clap(short = 'r', long, default_value_t = true)]
129129
reorganize_definitions: bool,
130130

131131
/// Extra arguments to pass to clang frontend during parsing the input C file

scripts/test_translator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def translate(self, cc_db: str, ld_lib_path: str, extra_args: List[str] = []) ->
9797
args.append("--translate-const-macros")
9898
args.append("experimental")
9999
if self.reorganize_definitions:
100-
args.append("--reorganize-definitions")
100+
args.append("--reorganize-definitions=true")
101101
if self.emit_build_files:
102102
args.append("--emit-build-files")
103103

0 commit comments

Comments
 (0)