diff --git a/engine/src/flutter/impeller/geometry/constants.h b/engine/src/flutter/impeller/geometry/constants.h index f47580753f..eb600e90da 100644 --- a/engine/src/flutter/impeller/geometry/constants.h +++ b/engine/src/flutter/impeller/geometry/constants.h @@ -10,16 +10,16 @@ namespace impeller { constexpr float kE = 2.7182818284590452354f; // log_2 e -constexpr float kLog2_E = 1.4426950408889634074f; +constexpr float kLog2E = 1.4426950408889634074f; // log_10 e -constexpr float kLog10_E = 0.43429448190325182765f; +constexpr float kLog10E = 0.43429448190325182765f; // log_e 2 -constexpr float klogE_2 = 0.69314718055994530942f; +constexpr float kLogE2 = 0.69314718055994530942f; // log_e 10 -constexpr float klogE_10 = 2.30258509299404568402f; +constexpr float kLogE10 = 2.30258509299404568402f; // pi constexpr float kPi = 3.14159265358979323846f; diff --git a/engine/src/flutter/impeller/geometry/half.h b/engine/src/flutter/impeller/geometry/half.h index ed81e16a11..d5aef60e0d 100644 --- a/engine/src/flutter/impeller/geometry/half.h +++ b/engine/src/flutter/impeller/geometry/half.h @@ -13,6 +13,8 @@ #include "impeller/geometry/scalar.h" #include "impeller/geometry/vector.h" +// NOLINTBEGIN(google-explicit-constructor) + #ifdef FML_OS_WIN using InternalHalf = uint16_t; #else @@ -185,4 +187,6 @@ inline std::ostream& operator<<(std::ostream& out, return out; } +// NOLINTEND(google-explicit-constructor) + } // namespace std diff --git a/engine/src/flutter/impeller/geometry/scalar.h b/engine/src/flutter/impeller/geometry/scalar.h index 8a080e18b5..ffdc58e336 100644 --- a/engine/src/flutter/impeller/geometry/scalar.h +++ b/engine/src/flutter/impeller/geometry/scalar.h @@ -12,6 +12,8 @@ namespace impeller { +// NOLINTBEGIN(google-explicit-constructor) + using Scalar = float; template >> @@ -52,4 +54,6 @@ struct Degrees { }; }; +// NOLINTEND(google-explicit-constructor) + } // namespace impeller diff --git a/engine/src/flutter/impeller/geometry/vector.h b/engine/src/flutter/impeller/geometry/vector.h index a644dd5417..b319776ff2 100644 --- a/engine/src/flutter/impeller/geometry/vector.h +++ b/engine/src/flutter/impeller/geometry/vector.h @@ -14,6 +14,8 @@ namespace impeller { +// NOLINTBEGIN(google-explicit-constructor) + struct Vector3 { union { struct { @@ -324,4 +326,6 @@ inline std::ostream& operator<<(std::ostream& out, const impeller::Vector4& p) { return out; } +// NOLINTEND(google-explicit-constructor) + } // namespace std diff --git a/engine/src/flutter/impeller/image/compressed_image.h b/engine/src/flutter/impeller/image/compressed_image.h index ad0134339a..c758a632b9 100644 --- a/engine/src/flutter/impeller/image/compressed_image.h +++ b/engine/src/flutter/impeller/image/compressed_image.h @@ -26,7 +26,7 @@ class CompressedImage { protected: const std::shared_ptr source_; - CompressedImage(std::shared_ptr allocation); + explicit CompressedImage(std::shared_ptr allocation); }; } // namespace impeller