use macro

This commit is contained in:
Alexander Kuzmenkov 2021-03-26 20:30:36 +03:00
parent cc93055e9e
commit c3cc65f826

View File

@ -236,7 +236,7 @@ void ASTFunction::formatImplWithoutAlias(const FormatSettings & settings, Format
// function, so we can implement this behavior here as // function, so we can implement this behavior here as
// well. Technically it is an UB to perform such negation // well. Technically it is an UB to perform such negation
// w/o a cast to unsigned type. // w/o a cast to unsigned type.
__attribute__((__no_sanitize__("undefined"))) NO_SANITIZE_UNDEFINED
{ {
using ValueType = std::decay_t<decltype(value)>; using ValueType = std::decay_t<decltype(value)>;
if constexpr (isDecimalField<ValueType>()) if constexpr (isDecimalField<ValueType>())