12 lines · cpp
1// RUN: clang-tidy %s -checks=-*,misc-redundant-expression -- -std=c++20 | count 02 3namespace concepts {4// redundant expressions inside concepts make sense, ignore them5template <class I>6concept TestConcept = requires(I i) {7 {i - i};8 {i && i};9 {i ? i : i};10};11} // namespace concepts12