[clang-tools-extra] [WIP][clang-tidy] Ignore `if consteval` in else-after-return (PR #91588)

Julian Schmidt via cfe-commits cfe-commits at lists.llvm.org
Sun May 12 09:15:52 PDT 2024


================
@@ -0,0 +1,17 @@
+// RUN: %check_clang_tidy -std=c++20 %s readability-else-after-return %t 
----------------
5chmidti wrote:

While `consteval` was added in C++20, `if consteval` is a C++23 feature. Please use `-std=c++23`
https://en.cppreference.com/w/cpp/language/if#Consteval_if

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


More information about the cfe-commits mailing list