HomePhabricator

[Utils] Reuse argument variable names in the body

Authored by jdoerfert on Nov 1 2019, 10:51 AM.

Description

[Utils] Reuse argument variable names in the body

If we have int foo(int a) { return a; } and we run with --function-signature
enabled, we want a single variable declaration for a which is reused
later.

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D69722

Details

Committed
jdoerfertDec 30 2019, 11:58 PM
Reviewer
lebedev.ri
Differential Revision
D69722: [Utils] Reuse argument variable names in the body
Parents
rG70771d8b9e8d: [Utils] Allow update_test_checks to scrub attribute annotations
Branches
Unknown
Tags
Unknown