isConvertingConstructor() is a better API.
https://google.github.io/styleguide/cppguide.html#Implicit_Conversions:
constructors that are callable with a single argument, must be marked explicit in the class definition.
Differential D145031
[clang-tidy] use isConvertingConstructor to simplify code thyecust on Feb 28 2023, 10:56 PM. Authored by
Details
isConvertingConstructor() is a better API. https://google.github.io/styleguide/cppguide.html#Implicit_Conversions:
Diff Detail |