tools/clang/lib/SPIRV/SPIRVEmitter.cpp
/// Returns true if the given type is a bool or vector of bool type.
Returns true if the given type is a bool or vector of bool type.
Returns true if the given type is a bool or vector of bool type .
bool isBoolOrVecOfBoolType(QualType type) {
  QualType elemType = {};
  return (TypeTranslator::isScalarType(type, &elemType) ||
          TypeTranslator::isVectorType(type, &elemType)) &&
         elemType->isBooleanType();
}
bool isBoolOrVecOfBoolType ( QualType type ) { QualType elemType = { } ; return ( TypeTranslator :: isScalarType ( type , & elemType ) || TypeTranslator :: isVectorType ( type , & elemType ) ) && elemType -> isBooleanType ( ) ; }
Returns true if the given type is a bool or vector of bool type.
Returns true if the given type is a bool or vector of bool type .