Lines Matching +full:1 +full:- +full:d

1 // RUN: %check_clang_tidy -std=c++11-or-later %s abseil-upgrade-duration-conversions %t -- -- -I%S/…
18 absl::Duration d; in arithmeticOperatorBasicPositive() local
19 d *= ConvertibleTo<int64_t>(); in arithmeticOperatorBasicPositive()
20 …// CHECK-MESSAGES: [[@LINE-1]]:8: warning: implicit conversion to 'int64_t' is deprecated in this … in arithmeticOperatorBasicPositive()
21 // CHECK-FIXES: d *= static_cast<int64_t>(ConvertibleTo<int64_t>()); in arithmeticOperatorBasicPositive()
22 d /= ConvertibleTo<int64_t>(); in arithmeticOperatorBasicPositive()
23 …// CHECK-MESSAGES: [[@LINE-1]]:8: warning: implicit conversion to 'int64_t' is deprecated in this … in arithmeticOperatorBasicPositive()
24 // CHECK-FIXES: d /= static_cast<int64_t>(ConvertibleTo<int64_t>()); in arithmeticOperatorBasicPositive()
25 d = ConvertibleTo<int64_t>() * d; in arithmeticOperatorBasicPositive()
26 …// CHECK-MESSAGES: [[@LINE-1]]:7: warning: implicit conversion to 'int64_t' is deprecated in this … in arithmeticOperatorBasicPositive()
27 // CHECK-FIXES: d = static_cast<int64_t>(ConvertibleTo<int64_t>()) * d; in arithmeticOperatorBasicPositive()
28 d = d * ConvertibleTo<int64_t>(); in arithmeticOperatorBasicPositive()
29 …// CHECK-MESSAGES: [[@LINE-1]]:11: warning: implicit conversion to 'int64_t' is deprecated in this… in arithmeticOperatorBasicPositive()
30 // CHECK-FIXES: d = d * static_cast<int64_t>(ConvertibleTo<int64_t>()); in arithmeticOperatorBasicPositive()
31 d = d / ConvertibleTo<int64_t>(); in arithmeticOperatorBasicPositive()
32 …// CHECK-MESSAGES: [[@LINE-1]]:11: warning: implicit conversion to 'int64_t' is deprecated in this… in arithmeticOperatorBasicPositive()
33 // CHECK-FIXES: d = d / static_cast<int64_t>(ConvertibleTo<int64_t>()); in arithmeticOperatorBasicPositive()
34 d.operator*=(ConvertibleTo<int64_t>()); in arithmeticOperatorBasicPositive()
35 …// CHECK-MESSAGES: [[@LINE-1]]:16: warning: implicit conversion to 'int64_t' is deprecated in this… in arithmeticOperatorBasicPositive()
36 // CHECK-FIXES: d.operator*=(static_cast<int64_t>(ConvertibleTo<int64_t>())); in arithmeticOperatorBasicPositive()
37 d.operator/=(ConvertibleTo<int64_t>()); in arithmeticOperatorBasicPositive()
38 …// CHECK-MESSAGES: [[@LINE-1]]:16: warning: implicit conversion to 'int64_t' is deprecated in this… in arithmeticOperatorBasicPositive()
39 // CHECK-FIXES: d.operator/=(static_cast<int64_t>(ConvertibleTo<int64_t>())); in arithmeticOperatorBasicPositive()
40 d = operator*(ConvertibleTo<int64_t>(), d); in arithmeticOperatorBasicPositive()
41 …// CHECK-MESSAGES: [[@LINE-1]]:17: warning: implicit conversion to 'int64_t' is deprecated in this… in arithmeticOperatorBasicPositive()
42 // CHECK-FIXES: d = operator*(static_cast<int64_t>(ConvertibleTo<int64_t>()), d); in arithmeticOperatorBasicPositive()
43 d = operator*(d, ConvertibleTo<int64_t>()); in arithmeticOperatorBasicPositive()
44 …// CHECK-MESSAGES: [[@LINE-1]]:20: warning: implicit conversion to 'int64_t' is deprecated in this… in arithmeticOperatorBasicPositive()
45 // CHECK-FIXES: d = operator*(d, static_cast<int64_t>(ConvertibleTo<int64_t>())); in arithmeticOperatorBasicPositive()
46 d = operator/(d, ConvertibleTo<int64_t>()); in arithmeticOperatorBasicPositive()
47 …// CHECK-MESSAGES: [[@LINE-1]]:20: warning: implicit conversion to 'int64_t' is deprecated in this… in arithmeticOperatorBasicPositive()
48 // CHECK-FIXES: d = operator/(d, static_cast<int64_t>(ConvertibleTo<int64_t>())); in arithmeticOperatorBasicPositive()
50 d *= (c + c) * c + c; in arithmeticOperatorBasicPositive()
51 …// CHECK-MESSAGES: [[@LINE-1]]:8: warning: implicit conversion to 'int64_t' is deprecated in this … in arithmeticOperatorBasicPositive()
52 // CHECK-FIXES: d *= static_cast<int64_t>((c + c) * c + c) in arithmeticOperatorBasicPositive()
53 d /= (c + c) * c + c; in arithmeticOperatorBasicPositive()
54 …// CHECK-MESSAGES: [[@LINE-1]]:8: warning: implicit conversion to 'int64_t' is deprecated in this … in arithmeticOperatorBasicPositive()
55 // CHECK-FIXES: d /= static_cast<int64_t>((c + c) * c + c) in arithmeticOperatorBasicPositive()
56 d = d * c * c; in arithmeticOperatorBasicPositive()
57 …// CHECK-MESSAGES: [[@LINE-1]]:11: warning: implicit conversion to 'int64_t' is deprecated in this… in arithmeticOperatorBasicPositive()
58 …// CHECK-MESSAGES: [[@LINE-2]]:15: warning: implicit conversion to 'int64_t' is deprecated in this… in arithmeticOperatorBasicPositive()
59 // CHECK-FIXES: d = d * static_cast<int64_t>(c) * static_cast<int64_t>(c) in arithmeticOperatorBasicPositive()
60 d = c * d * c; in arithmeticOperatorBasicPositive()
61 …// CHECK-MESSAGES: [[@LINE-1]]:7: warning: implicit conversion to 'int64_t' is deprecated in this … in arithmeticOperatorBasicPositive()
62 …// CHECK-MESSAGES: [[@LINE-2]]:15: warning: implicit conversion to 'int64_t' is deprecated in this… in arithmeticOperatorBasicPositive()
63 // CHECK-FIXES: d = static_cast<int64_t>(c) * d * static_cast<int64_t>(c) in arithmeticOperatorBasicPositive()
64 d = d / c * c; in arithmeticOperatorBasicPositive()
65 …// CHECK-MESSAGES: [[@LINE-1]]:11: warning: implicit conversion to 'int64_t' is deprecated in this… in arithmeticOperatorBasicPositive()
66 …// CHECK-MESSAGES: [[@LINE-2]]:15: warning: implicit conversion to 'int64_t' is deprecated in this… in arithmeticOperatorBasicPositive()
67 // CHECK-FIXES: d = d / static_cast<int64_t>(c) * static_cast<int64_t>(c) in arithmeticOperatorBasicPositive()
71 absl::Duration d; in arithmeticOperatorBasicNegative() local
72 d *= char{1}; in arithmeticOperatorBasicNegative()
73 d *= 1; in arithmeticOperatorBasicNegative()
74 d *= int64_t{1}; in arithmeticOperatorBasicNegative()
75 d *= 1.0f; in arithmeticOperatorBasicNegative()
76 d *= 1.0; in arithmeticOperatorBasicNegative()
77 d *= 1.0l; in arithmeticOperatorBasicNegative()
78 d /= char{1}; in arithmeticOperatorBasicNegative()
79 d /= 1; in arithmeticOperatorBasicNegative()
80 d /= int64_t{1}; in arithmeticOperatorBasicNegative()
81 d /= 1.0f; in arithmeticOperatorBasicNegative()
82 d /= 1.0; in arithmeticOperatorBasicNegative()
83 d /= 1.0l; in arithmeticOperatorBasicNegative()
84 d = d * char{1}; in arithmeticOperatorBasicNegative()
85 d = d * 1; in arithmeticOperatorBasicNegative()
86 d = d * int64_t{1}; in arithmeticOperatorBasicNegative()
87 d = d * 1.0f; in arithmeticOperatorBasicNegative()
88 d = d * 1.0; in arithmeticOperatorBasicNegative()
89 d = d * 1.0l; in arithmeticOperatorBasicNegative()
90 d = char{1} * d; in arithmeticOperatorBasicNegative()
91 d = 1 * d; in arithmeticOperatorBasicNegative()
92 d = int64_t{1} * d; in arithmeticOperatorBasicNegative()
93 d = 1.0f * d; in arithmeticOperatorBasicNegative()
94 d = 1.0 * d; in arithmeticOperatorBasicNegative()
95 d = 1.0l * d; in arithmeticOperatorBasicNegative()
96 d = d / char{1}; in arithmeticOperatorBasicNegative()
97 d = d / 1; in arithmeticOperatorBasicNegative()
98 d = d / int64_t{1}; in arithmeticOperatorBasicNegative()
99 d = d / 1.0f; in arithmeticOperatorBasicNegative()
100 d = d / 1.0; in arithmeticOperatorBasicNegative()
101 d = d / 1.0l; in arithmeticOperatorBasicNegative()
103 d *= static_cast<int>(ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
104 d *= (int)ConvertibleTo<int>(); in arithmeticOperatorBasicNegative()
105 d *= int(ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
106 d /= static_cast<int>(ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
107 d /= (int)ConvertibleTo<int>(); in arithmeticOperatorBasicNegative()
108 d /= int(ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
109 d = static_cast<int>(ConvertibleTo<int>()) * d; in arithmeticOperatorBasicNegative()
110 d = (int)ConvertibleTo<int>() * d; in arithmeticOperatorBasicNegative()
111 d = int(ConvertibleTo<int>()) * d; in arithmeticOperatorBasicNegative()
112 d = d * static_cast<int>(ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
113 d = d * (int)ConvertibleTo<int>(); in arithmeticOperatorBasicNegative()
114 d = d * int(ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
115 d = d / static_cast<int>(ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
116 d = d / (int)ConvertibleTo<int>(); in arithmeticOperatorBasicNegative()
117 d = d / int(ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
119 d *= 1 + ConvertibleTo<int>(); in arithmeticOperatorBasicNegative()
120 d /= 1 + ConvertibleTo<int>(); in arithmeticOperatorBasicNegative()
121 d = (1 + ConvertibleTo<int>()) * d; in arithmeticOperatorBasicNegative()
122 d = d * (1 + ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
123 d = d / (1 + ConvertibleTo<int>()); in arithmeticOperatorBasicNegative()
128 void templateForOpsSpecialization<absl::Duration>(absl::Duration d) { in templateForOpsSpecialization() argument
129 d *= ConvertibleTo<int64_t>(); in templateForOpsSpecialization()
130 …// CHECK-MESSAGES: [[@LINE-1]]:8: warning: implicit conversion to 'int64_t' is deprecated in this … in templateForOpsSpecialization()
131 // CHECK-FIXES: d *= static_cast<int64_t>(ConvertibleTo<int64_t>()); in templateForOpsSpecialization()
135 absl::Duration d; in arithmeticNonTypeTemplateParamSpecialization() local
136 d *= N; in arithmeticNonTypeTemplateParamSpecialization()
140 absl::Duration d; in arithmeticNonTypeTemplateParamSpecialization() local
141 d *= ConvertibleTo<int>(); in arithmeticNonTypeTemplateParamSpecialization()
142 …// CHECK-MESSAGES: [[@LINE-1]]:8: warning: implicit conversion to 'int64_t' is deprecated in this … in arithmeticNonTypeTemplateParamSpecialization()
143 // CHECK-FIXES: d *= static_cast<int64_t>(ConvertibleTo<int>()); in arithmeticNonTypeTemplateParamSpecialization()
147 absl::Duration d; in templateOpsFix() local
148 d *= ConvertibleTo<int64_t>(); in templateOpsFix()
149 …// CHECK-MESSAGES: [[@LINE-1]]:8: warning: implicit conversion to 'int64_t' is deprecated in this … in templateOpsFix()
150 // CHECK-FIXES: d *= static_cast<int64_t>(ConvertibleTo<int64_t>()); in templateOpsFix()
155 …// CHECK-MESSAGES: [[@LINE-1]]:8: warning: implicit conversion to 'int64_t' is deprecated in this … in templateOpsWarnOnly()
156 absl::Duration d; in templateOpsWarnOnly() local
157 d *= u; in templateOpsWarnOnly()
158 …// CHECK-MESSAGES: [[@LINE-1]]:8: warning: implicit conversion to 'int64_t' is deprecated in this … in templateOpsWarnOnly()
163 d *= t; in memberA()
164 …// CHECK-MESSAGES: [[@LINE-1]]:10: warning: implicit conversion to 'int64_t' is deprecated in this… in memberA()
168 …// CHECK-MESSAGES: [[@LINE-1]]:10: warning: implicit conversion to 'int64_t' is deprecated in this… in memberB()
169 d *= v; in memberB()
170 …// CHECK-MESSAGES: [[@LINE-1]]:10: warning: implicit conversion to 'int64_t' is deprecated in this… in memberB()
173 absl::Duration d; member
182 arithmeticNonTypeTemplateParamSpecialization<1>(); in arithmeticOperatorsInTemplates()
196 …// CHECK-MESSAGES: [[@LINE-1]]:8: warning: implicit conversion to 'int64_t' is deprecated in this … in templateOpsInstantiationBeforeDefinition()
197 absl::Duration d; in templateOpsInstantiationBeforeDefinition() local
198 d *= u; in templateOpsInstantiationBeforeDefinition()
199 …// CHECK-MESSAGES: [[@LINE-1]]:8: warning: implicit conversion to 'int64_t' is deprecated in this … in templateOpsInstantiationBeforeDefinition()
204 #define ONLY_WARN_INSIDE_MACRO_ARITHMETIC_OP d *= ConvertibleTo<int>()
207 #define T_CALL_EXPR d *= T()
210 absl::Duration d; in arithmeticTemplateAndMacro() local
211 d *= T_OBJECT; in arithmeticTemplateAndMacro()
212 …// CHECK-MESSAGES: [[@LINE-1]]:8: warning: implicit conversion to 'int64_t' is deprecated in this … in arithmeticTemplateAndMacro()
213 d *= CONVERTIBLE_TMP; in arithmeticTemplateAndMacro()
214 …// CHECK-MESSAGES: [[@LINE-1]]:8: warning: implicit conversion to 'int64_t' is deprecated in this … in arithmeticTemplateAndMacro()
215 // CHECK-FIXES: d *= static_cast<int64_t>(CONVERTIBLE_TMP); in arithmeticTemplateAndMacro()
217 …// CHECK-MESSAGES: [[@LINE-1]]:3: warning: implicit conversion to 'int64_t' is deprecated in this … in arithmeticTemplateAndMacro()
222 type d; \
223 d *= t; \
227 // CHECK-MESSAGES: [[@LINE-1]]:1: warning: implicit conversion to 'int64_t' is deprecated in this c… in TEMPLATE_MACRO()
230 absl::Duration d; in TEMPLATE_MACRO() local
231 d = FUNCTION_MACRO(d * ConvertibleTo<int>()); in TEMPLATE_MACRO()
232 …// CHECK-MESSAGES: [[@LINE-1]]:26: warning: implicit conversion to 'int64_t' is deprecated in this… in TEMPLATE_MACRO()
233 // CHECK-FIXES: d = FUNCTION_MACRO(d * static_cast<int64_t>(ConvertibleTo<int>())); in TEMPLATE_MACRO()
234 d *= FUNCTION_MACRO(ConvertibleTo<int>()); in TEMPLATE_MACRO()
235 …// CHECK-MESSAGES: [[@LINE-1]]:23: warning: implicit conversion to 'int64_t' is deprecated in this… in TEMPLATE_MACRO()
236 // CHECK-FIXES: d *= static_cast<int64_t>(FUNCTION_MACRO(ConvertibleTo<int>())); in TEMPLATE_MACRO()
237 d *= CONVERTIBLE_TMP; in TEMPLATE_MACRO()
238 …// CHECK-MESSAGES: [[@LINE-1]]:8: warning: implicit conversion to 'int64_t' is deprecated in this … in TEMPLATE_MACRO()
239 // CHECK-FIXES: d *= static_cast<int64_t>(CONVERTIBLE_TMP); in TEMPLATE_MACRO()
241 …// CHECK-MESSAGES: [[@LINE-1]]:3: warning: implicit conversion to 'int64_t' is deprecated in this … in TEMPLATE_MACRO()
249 …// CHECK-MESSAGES: [[@LINE-1]]:27: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryFunctionPositive()
250 // CHECK-FIXES: (void)absl::Nanoseconds(static_cast<int64_t>(ConvertibleTo<int64_t>())); in factoryFunctionPositive()
252 …// CHECK-MESSAGES: [[@LINE-1]]:28: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryFunctionPositive()
253 // CHECK-FIXES: (void)absl::Microseconds(static_cast<int64_t>(ConvertibleTo<int64_t>())); in factoryFunctionPositive()
255 …// CHECK-MESSAGES: [[@LINE-1]]:28: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryFunctionPositive()
256 // CHECK-FIXES: (void)absl::Milliseconds(static_cast<int64_t>(ConvertibleTo<int64_t>())); in factoryFunctionPositive()
258 …// CHECK-MESSAGES: [[@LINE-1]]:23: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryFunctionPositive()
259 // CHECK-FIXES: (void)absl::Seconds(static_cast<int64_t>(ConvertibleTo<int64_t>())); in factoryFunctionPositive()
261 …// CHECK-MESSAGES: [[@LINE-1]]:23: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryFunctionPositive()
262 // CHECK-FIXES: (void)absl::Minutes(static_cast<int64_t>(ConvertibleTo<int64_t>())); in factoryFunctionPositive()
264 …// CHECK-MESSAGES: [[@LINE-1]]:21: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryFunctionPositive()
265 // CHECK-FIXES: (void)absl::Hours(static_cast<int64_t>(ConvertibleTo<int64_t>())); in factoryFunctionPositive()
267 // User defined conversion to integral type, followed by built-in conversion: in factoryFunctionPositive()
269 …// CHECK-MESSAGES: [[@LINE-1]]:27: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryFunctionPositive()
270 // CHECK-FIXES: (void)absl::Nanoseconds(static_cast<int64_t>(ConvertibleTo<char>())); in factoryFunctionPositive()
272 …// CHECK-MESSAGES: [[@LINE-1]]:28: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryFunctionPositive()
273 // CHECK-FIXES: (void)absl::Microseconds(static_cast<int64_t>(ConvertibleTo<char>())); in factoryFunctionPositive()
275 …// CHECK-MESSAGES: [[@LINE-1]]:28: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryFunctionPositive()
276 // CHECK-FIXES: (void)absl::Milliseconds(static_cast<int64_t>(ConvertibleTo<char>())); in factoryFunctionPositive()
278 …// CHECK-MESSAGES: [[@LINE-1]]:23: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryFunctionPositive()
279 // CHECK-FIXES: (void)absl::Seconds(static_cast<int64_t>(ConvertibleTo<char>())); in factoryFunctionPositive()
281 …// CHECK-MESSAGES: [[@LINE-1]]:23: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryFunctionPositive()
282 // CHECK-FIXES: (void)absl::Minutes(static_cast<int64_t>(ConvertibleTo<char>())); in factoryFunctionPositive()
284 …// CHECK-MESSAGES: [[@LINE-1]]:21: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryFunctionPositive()
285 // CHECK-FIXES: (void)absl::Hours(static_cast<int64_t>(ConvertibleTo<char>())); in factoryFunctionPositive()
287 // User defined conversion to floating point type, followed by built-in conversion: in factoryFunctionPositive()
289 …// CHECK-MESSAGES: [[@LINE-1]]:27: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryFunctionPositive()
290 // CHECK-FIXES: (void)absl::Nanoseconds(static_cast<int64_t>(ConvertibleTo<float>())); in factoryFunctionPositive()
292 …// CHECK-MESSAGES: [[@LINE-1]]:28: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryFunctionPositive()
293 // CHECK-FIXES: (void)absl::Microseconds(static_cast<int64_t>(ConvertibleTo<float>())); in factoryFunctionPositive()
295 …// CHECK-MESSAGES: [[@LINE-1]]:28: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryFunctionPositive()
296 // CHECK-FIXES: (void)absl::Milliseconds(static_cast<int64_t>(ConvertibleTo<float>())); in factoryFunctionPositive()
298 …// CHECK-MESSAGES: [[@LINE-1]]:23: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryFunctionPositive()
299 // CHECK-FIXES: (void)absl::Seconds(static_cast<int64_t>(ConvertibleTo<float>())); in factoryFunctionPositive()
301 …// CHECK-MESSAGES: [[@LINE-1]]:23: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryFunctionPositive()
302 // CHECK-FIXES: (void)absl::Minutes(static_cast<int64_t>(ConvertibleTo<float>())); in factoryFunctionPositive()
304 …// CHECK-MESSAGES: [[@LINE-1]]:21: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryFunctionPositive()
305 // CHECK-FIXES: (void)absl::Hours(static_cast<int64_t>(ConvertibleTo<float>())); in factoryFunctionPositive()
309 (void)absl::Nanoseconds(char{1}); in factoryFunctionNegative()
310 (void)absl::Nanoseconds(1); in factoryFunctionNegative()
311 (void)absl::Nanoseconds(int64_t{1}); in factoryFunctionNegative()
313 (void)absl::Microseconds(char{1}); in factoryFunctionNegative()
314 (void)absl::Microseconds(1); in factoryFunctionNegative()
315 (void)absl::Microseconds(int64_t{1}); in factoryFunctionNegative()
317 (void)absl::Milliseconds(char{1}); in factoryFunctionNegative()
318 (void)absl::Milliseconds(1); in factoryFunctionNegative()
319 (void)absl::Milliseconds(int64_t{1}); in factoryFunctionNegative()
321 (void)absl::Seconds(char{1}); in factoryFunctionNegative()
322 (void)absl::Seconds(1); in factoryFunctionNegative()
323 (void)absl::Seconds(int64_t{1}); in factoryFunctionNegative()
325 (void)absl::Minutes(char{1}); in factoryFunctionNegative()
326 (void)absl::Minutes(1); in factoryFunctionNegative()
327 (void)absl::Minutes(int64_t{1}); in factoryFunctionNegative()
329 (void)absl::Hours(char{1}); in factoryFunctionNegative()
330 (void)absl::Hours(1); in factoryFunctionNegative()
331 (void)absl::Hours(int64_t{1}); in factoryFunctionNegative()
345 …// CHECK-MESSAGES: [[@LINE-1]]:27: warning: implicit conversion to 'int64_t' is deprecated in this… in templateForFactorySpecialization()
346 // CHECK-FIXES: (void)absl::Nanoseconds(static_cast<int64_t>(c)); in templateForFactorySpecialization()
355 …// CHECK-MESSAGES: [[@LINE-1]]:27: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryNonTypeTemplateParamSpecialization()
356 // CHECK-FIXES: (void)absl::Nanoseconds(static_cast<int64_t>(ConvertibleTo<int>())); in factoryNonTypeTemplateParamSpecialization()
361 …// CHECK-MESSAGES: [[@LINE-1]]:27: warning: implicit conversion to 'int64_t' is deprecated in this… in templateFactoryFix()
362 // CHECK-FIXES: (void)absl::Nanoseconds(static_cast<int64_t>(ConvertibleTo<int>())); in templateFactoryFix()
367 …// CHECK-MESSAGES: [[@LINE-1]]:27: warning: implicit conversion to 'int64_t' is deprecated in this… in templateFactoryWarnOnly()
375 …// CHECK-MESSAGES: [[@LINE-1]]:29: warning: implicit conversion to 'int64_t' is deprecated in this… in memberA()
379 …// CHECK-MESSAGES: [[@LINE-1]]:29: warning: implicit conversion to 'int64_t' is deprecated in this… in memberB()
386 factoryNonTypeTemplateParamSpecialization<1>(); in factoryInTemplates()
398 …// CHECK-MESSAGES: [[@LINE-1]]:27: warning: implicit conversion to 'int64_t' is deprecated in this… in templateFactoryInstantiationBeforeDefinition()
407 …// CHECK-MESSAGES: [[@LINE-1]]:27: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryTemplateAndMacro()
409 …// CHECK-MESSAGES: [[@LINE-1]]:27: warning: implicit conversion to 'int64_t' is deprecated in this… in factoryTemplateAndMacro()
410 // CHECK-FIXES: (void)absl::Nanoseconds(static_cast<int64_t>(CONVERTIBLE_TMP)) in factoryTemplateAndMacro()
412 …// CHECK-MESSAGES: [[@LINE-1]]:3: warning: implicit conversion to 'int64_t' is deprecated in this … in factoryTemplateAndMacro()
419 // CHECK-MESSAGES: [[@LINE-1]]:1: warning: implicit conversion to 'int64_t' is deprecated in this c… in TEMPLATE_FACTORY_MACRO()
423 …// CHECK-MESSAGES: [[@LINE-1]]:42: warning: implicit conversion to 'int64_t' is deprecated in this… in TEMPLATE_FACTORY_MACRO()
424 …// CHECK-FIXES: (void)absl::Nanoseconds(static_cast<int64_t>(FUNCTION_MACRO(ConvertibleTo<int>()))… in TEMPLATE_FACTORY_MACRO()
426 …// CHECK-MESSAGES: [[@LINE-1]]:27: warning: implicit conversion to 'int64_t' is deprecated in this… in TEMPLATE_FACTORY_MACRO()
427 // CHECK-FIXES: (void)absl::Nanoseconds(static_cast<int64_t>(CONVERTIBLE_TMP)) in TEMPLATE_FACTORY_MACRO()
429 …// CHECK-MESSAGES: [[@LINE-1]]:3: warning: implicit conversion to 'int64_t' is deprecated in this … in TEMPLATE_FACTORY_MACRO()
434 // This is a reduced test-case for PR39949 and manifested in this check.