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

via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 26 12:00:48 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()) {
----------------
Sirraide wrote:

Don’t we need `isCOrEarlier()` here?

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


More information about the cfe-commits mailing list