Re: [Tests] Making Lit Tests C++11 compatibile

2015-11-10 Thread Richard Smith via cfe-commits
You use this pattern in a few places: +#if (__cplusplus <= 199711L) // C or C++03 or earlier modes Please remove the "C or" from the tests that are not actually run in C mode (most or all of these tests make no sense in C, so the comment is confusing). Also remove the parens. Otherwise, this loo

[Tests] Making Lit Tests C++11 compatibile

2015-11-10 Thread Li, Charles via cfe-commits
Hello Clang developers, I am back again with another patch to make Clang Lit tests C++11 compatible. There are 26 tests in total. These are mainly diagnostics verifications where C++98/03 and C++11 differ. I tried to preserve as much coverage as possible. Unless otherwise stated, these tests have