Add underscores to local vars in selftest macros

Programming / Compilers / GCC - rsandifo [138bc75d-0d04-0410-961f-82ee72b054a4] - 7 December 2017 18:40 EST

Allows functions doing selftests to take parameters with names like "actual".

2017-12-07 Richard Sandiford

gcc/
- selftest.h (ASSERT_TRUE_AT, ASSERT_FALSE_AT, ASSERT_EQ_AT) (ASSERT_NE, ASSERT_PRED1): Add underscores to local variable names
- selftest-rtl.h (ASSERT_RTX_EQ, ASSERT_RTX_PTR_EQ): Likewise.

d7e88239e09 Add underscores to local vars in selftest macros
gcc/ChangeLog | 6 ++++++
gcc/selftest-rtl.h | 8 ++++----
gcc/selftest.h | 50 +++++++++++++++++++++++++-------------------------
3 files changed, 35 insertions(+), 29 deletions(-)

Upstream: gcc.gnu.org


  • Share