[PATCH] D53339: [clang-tidy] Add the abseil-duration-factory-float check

Zachary Turner via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 17 09:52:35 PDT 2018


zturner added inline comments.


================
Comment at: clang-tidy/abseil/DurationFactoryFloatCheck.cpp:24
+truncateIfIntegral(const FloatingLiteral &FloatLiteral) {
+  double value = FloatLiteral.getValueAsApproximateDouble();
+  if (std::fmod(value, 1) == 0) {
----------------
All variables (local, global, function parameter) use exactly same naming convention `CamelCase`.


https://reviews.llvm.org/D53339





More information about the cfe-commits mailing list