[clang] [clang][test] add TestLanguage.def to specify all tested language versions (PR #94243)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 29 11:43:31 PDT 2024


================
@@ -1224,7 +1224,7 @@ TEST_P(ASTMatchersTest, CastExpression_MatchesImplicitCasts) {
 }
 
 TEST_P(ASTMatchersTest, CastExpr_DoesNotMatchNonCasts) {
-  if (GetParam().Language == Lang_C89 || GetParam().Language == Lang_C99) {
+  if (GetParam().isC()) {
----------------
AaronBallman wrote:

Ah, okay, that's a reasonable change then, thank you!

https://github.com/llvm/llvm-project/pull/94243


More information about the cfe-commits mailing list