[PATCH] D54737: [clang-tidy] Add the abseil-duration-comparison check

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 3 11:27:27 PST 2018


JonasToth added a comment.

I had to revert and recommitted in rCTE348169 <https://reviews.llvm.org/rCTE348169>. `std::unordered_map<enum class Something, ...>` does not work, as `std::hash` is not specialized for it. This behaviour seems to work for some compilers, but some not. I had to google myself a bit for the best solution, but now I specialized the hash-function to `std::hash<std::int8>()` in `unordered_set` which worked for me locally and was suggested. Lets see ;)


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D54737/new/

https://reviews.llvm.org/D54737





More information about the cfe-commits mailing list