Izaron added inline comments.

================
Comment at: clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp:1807
+TEST_P(ASTMatchersTest, IsConsteval_MatchesIfConsteval) {
+  if (!GetParam().isCXX20OrLater()) {
+    return;
----------------
Actually `if consteval` is a C++23 feature, but there is no `isCXX23orLater()` 
method. The `is consteval` construction seems to be backported to C++20 in 
clang, as it compiles and just emits a warning
```
warning: consteval if is a C++2b extension [-Wc++2b-extensions]
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117613/new/

https://reviews.llvm.org/D117613

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to