Lines Matching refs:ConvertibleTo
8 template <typename T> struct ConvertibleTo { struct
13 ConvertibleTo<T> operator+(ConvertibleTo<T>, ConvertibleTo<T>);
16 ConvertibleTo<T> operator*(ConvertibleTo<T>, ConvertibleTo<T>);
20 d *= ConvertibleTo<int64_t>(); in arithmeticOperatorBasicPositive()
23 d /= ConvertibleTo<int64_t>(); in arithmeticOperatorBasicPositive()
26 d = ConvertibleTo<int64_t>() * d; in arithmeticOperatorBasicPositive()
29 d = d * ConvertibleTo<int64_t>(); in arithmeticOperatorBasicPositive()
32 d = d / ConvertibleTo<int64_t>(); in arithmeticOperatorBasicPositive()
35 d.operator*=(ConvertibleTo<int64_t>()); in arithmeticOperatorBasicPositive()
38 d.operator/=(ConvertibleTo<int64_t>()); in arithmeticOperatorBasicPositive()
41 d = operator*(ConvertibleTo<int64_t>(), d); in arithmeticOperatorBasicPositive()
44 d = operator*(d, ConvertibleTo<int64_t>()); in arithmeticOperatorBasicPositive()
47 d = operator/(d, ConvertibleTo<int64_t>()); in arithmeticOperatorBasicPositive()
50 ConvertibleTo<int64_t> c; in arithmeticOperatorBasicPositive()
104 d *= static_cast<int>(ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
105 d *= (int)ConvertibleTo<int>(); in arithmeticOperatorBasicNegative()
106 d *= int(ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
107 d /= static_cast<int>(ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
108 d /= (int)ConvertibleTo<int>(); in arithmeticOperatorBasicNegative()
109 d /= int(ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
110 d = static_cast<int>(ConvertibleTo<int>()) * d; in arithmeticOperatorBasicNegative()
111 d = (int)ConvertibleTo<int>() * d; in arithmeticOperatorBasicNegative()
112 d = int(ConvertibleTo<int>()) * d; in arithmeticOperatorBasicNegative()
113 d = d * static_cast<int>(ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
114 d = d * (int)ConvertibleTo<int>(); in arithmeticOperatorBasicNegative()
115 d = d * int(ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
116 d = d / static_cast<int>(ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
117 d = d / (int)ConvertibleTo<int>(); in arithmeticOperatorBasicNegative()
118 d = d / int(ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
120 d *= 1 + ConvertibleTo<int>(); in arithmeticOperatorBasicNegative()
121 d /= 1 + ConvertibleTo<int>(); in arithmeticOperatorBasicNegative()
122 d = (1 + ConvertibleTo<int>()) * d; in arithmeticOperatorBasicNegative()
123 d = d * (1 + ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
124 d = d / (1 + ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
130 d *= ConvertibleTo<int64_t>(); in templateForOpsSpecialization()
142 d *= ConvertibleTo<int>(); in arithmeticNonTypeTemplateParamSpecialization()
149 d *= ConvertibleTo<int64_t>(); in templateOpsFix()
186 templateOpsWarnOnly(absl::Duration(), ConvertibleTo<int>()); in arithmeticOperatorsInTemplates()
188 ConvertibleTo<int>()); in arithmeticOperatorsInTemplates()
189 TemplateTypeOpsWarnOnly<ConvertibleTo<int>> t; in arithmeticOperatorsInTemplates()
190 t.memberA(ConvertibleTo<int>()); in arithmeticOperatorsInTemplates()
191 t.memberB(absl::Duration(), ConvertibleTo<int>()); in arithmeticOperatorsInTemplates()
204 #define CONVERTIBLE_TMP ConvertibleTo<int>()
205 #define ONLY_WARN_INSIDE_MACRO_ARITHMETIC_OP d *= ConvertibleTo<int>()
232 d = FUNCTION_MACRO(d * ConvertibleTo<int>()); in TEMPLATE_MACRO()
235 d *= FUNCTION_MACRO(ConvertibleTo<int>()); in TEMPLATE_MACRO()
243 arithmeticTemplateAndMacro<ConvertibleTo<int>>(); in TEMPLATE_MACRO()
244 TemplateInMacro(ConvertibleTo<int>()); in TEMPLATE_MACRO()
249 (void)absl::Nanoseconds(ConvertibleTo<int64_t>()); in factoryFunctionPositive()
252 (void)absl::Microseconds(ConvertibleTo<int64_t>()); in factoryFunctionPositive()
255 (void)absl::Milliseconds(ConvertibleTo<int64_t>()); in factoryFunctionPositive()
258 (void)absl::Seconds(ConvertibleTo<int64_t>()); in factoryFunctionPositive()
261 (void)absl::Minutes(ConvertibleTo<int64_t>()); in factoryFunctionPositive()
264 (void)absl::Hours(ConvertibleTo<int64_t>()); in factoryFunctionPositive()
269 (void)absl::Nanoseconds(ConvertibleTo<char>()); in factoryFunctionPositive()
272 (void)absl::Microseconds(ConvertibleTo<char>()); in factoryFunctionPositive()
275 (void)absl::Milliseconds(ConvertibleTo<char>()); in factoryFunctionPositive()
278 (void)absl::Seconds(ConvertibleTo<char>()); in factoryFunctionPositive()
281 (void)absl::Minutes(ConvertibleTo<char>()); in factoryFunctionPositive()
284 (void)absl::Hours(ConvertibleTo<char>()); in factoryFunctionPositive()
289 (void)absl::Nanoseconds(ConvertibleTo<float>()); in factoryFunctionPositive()
292 (void)absl::Microseconds(ConvertibleTo<float>()); in factoryFunctionPositive()
295 (void)absl::Milliseconds(ConvertibleTo<float>()); in factoryFunctionPositive()
298 (void)absl::Seconds(ConvertibleTo<float>()); in factoryFunctionPositive()
301 (void)absl::Minutes(ConvertibleTo<float>()); in factoryFunctionPositive()
304 (void)absl::Hours(ConvertibleTo<float>()); in factoryFunctionPositive()
335 (void)absl::Nanoseconds(static_cast<int>(ConvertibleTo<int>())); in factoryFunctionNegative()
336 (void)absl::Microseconds(static_cast<int>(ConvertibleTo<int>())); in factoryFunctionNegative()
337 (void)absl::Milliseconds(static_cast<int>(ConvertibleTo<int>())); in factoryFunctionNegative()
338 (void)absl::Seconds(static_cast<int>(ConvertibleTo<int>())); in factoryFunctionNegative()
339 (void)absl::Minutes(static_cast<int>(ConvertibleTo<int>())); in factoryFunctionNegative()
340 (void)absl::Hours(static_cast<int>(ConvertibleTo<int>())); in factoryFunctionNegative()
344 template <> void templateForFactorySpecialization<ConvertibleTo<int>>(ConvertibleTo<int> c) { in templateForFactorySpecialization()
355 (void)absl::Nanoseconds(ConvertibleTo<int>()); in factoryNonTypeTemplateParamSpecialization()
361 (void)absl::Nanoseconds(ConvertibleTo<int>()); in templateFactoryFix()
386 templateForFactorySpecialization(ConvertibleTo<int>()); in factoryInTemplates()
390 templateFactoryWarnOnly(ConvertibleTo<int>()); in factoryInTemplates()
391 templateFactoryInstantiationBeforeDefinition(ConvertibleTo<int>()); in factoryInTemplates()
392 TemplateTypeFactoryWarnOnly<ConvertibleTo<int>> t; in factoryInTemplates()
393 t.memberA(ConvertibleTo<int>()); in factoryInTemplates()
394 t.memberB(ConvertibleTo<int>()); in factoryInTemplates()
403 (void)absl::Nanoseconds(ConvertibleTo<int>())
423 (void)absl::Nanoseconds(FUNCTION_MACRO(ConvertibleTo<int>())); in TEMPLATE_FACTORY_MACRO()
431 factoryTemplateAndMacro<ConvertibleTo<int>>(); in TEMPLATE_FACTORY_MACRO()
432 TemplateFactoryInMacro(ConvertibleTo<int>()); in TEMPLATE_FACTORY_MACRO()