1 // RUN: clang-tidy %s -checks='-*,readability-simplify-boolean-expr' -- -std=c++2b | count 0 2 template <bool Cond> testIf()3constexpr int testIf() { 4 if consteval { 5 if constexpr (Cond) { 6 return 0; 7 } else { 8 return 1; 9 } 10 } else { 11 return 2; 12 } 13 } 14 15 constexpr bool testCompound() { 16 if consteval { 17 return true; 18 } 19 return false; 20 } 21 22 constexpr bool testCase(int I) { 23 switch (I) { 24 case 0: { 25 if consteval { 26 return true; 27 } 28 return false; 29 } 30 default: { 31 if consteval { 32 return false; 33 } 34 return true; 35 } 36 } 37 } 38