Skip to content

Commit

Permalink
Improve Macro Safety and Casting Practices: remove trailing semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
anandamideShakyan committed Dec 17, 2024
1 parent 4cffa4b commit 186f320
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion velox/common/base/SpillStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ bool SpillStats::operator<(const SpillStats& other) const {
} else if (counter > other.counter) { \
++gtCount; \
} \
} while (0);
} while (0)

UPDATE_COUNTER(spillRuns);
UPDATE_COUNTER(spilledInputBytes);
Expand Down
4 changes: 2 additions & 2 deletions velox/core/Metaprogramming.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ struct has_method {
-> decltype(std::declval<__T>().MethodName(args...)) { \
return {}; \
} \
};
}

// Calling Name::resolve<T>::type will return T::TypeName if T::TypeName
// exists, and otherwise will return T::OtherTypeName (it's existence is not
Expand All @@ -169,5 +169,5 @@ struct has_method {
std::void_t<decltype(sizeof(typename __T::TypeName))>> { \
using type = typename __T::TypeName; \
}; \
};
}
} // namespace facebook::velox::util

0 comments on commit 186f320

Please sign in to comment.