Home
last modified time | relevance | path

Searched refs:truthy (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Dsimplify-bool-expr.cpp319 static constexpr bool truthy() { in truthy() function
329 if (b && truthy()) { in macros_and_constexprs()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DAttrDocs.td822 ptr = &g; // error: 'a == 0 || a != 0' is not a truthy constant
823 ptr = &h; // OK: 1 is a truthy constant
824 ptr = &i; // OK: 'TrueConstant' is a truthy constant
825 ptr = &j; // error: 'FalseConstant' is a constant, but not truthy