Lines Matching full:cast
1 …clang_tidy %s bugprone-misplaced-widening-cast %t -- -config="{CheckOptions: {bugprone-misplaced-w…
9 …ning: either cast from 'int' to 'long' is ineffective, or there is loss of precision before the co… in assign()
11 // CHECK-MESSAGES: :[[@LINE-1]]:7: warning: either cast from 'int' to 'long' in assign()
15 // CHECK-MESSAGES: :[[@LINE-1]]:7: warning: either cast from 'int' to 'long' in assign()
17 // CHECK-MESSAGES: :[[@LINE-1]]:7: warning: either cast from 'int' to 'long' in assign()
21 // CHECK-MESSAGES: :[[@LINE-1]]:7: warning: either cast from 'int' to 'long' in assign()
28 // CHECK-MESSAGES: :[[@LINE-1]]:7: warning: either cast from 'int' to 'long' in compare()
30 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: either cast from 'int' to 'long' in compare()
32 // CHECK-MESSAGES: :[[@LINE-1]]:7: warning: either cast from 'int' to 'long' in compare()
34 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: either cast from 'int' to 'long' in compare()
41 // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: either cast from 'unsigned int' to 'long' in init()
43 // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: either cast from 'unsigned int' to 'long' in init()
49 // CHECK-MESSAGES: :[[@LINE-1]]:8: warning: either cast from 'unsigned int' to 'long' in call()
51 // CHECK-MESSAGES: :[[@LINE-1]]:8: warning: either cast from 'unsigned int' to 'long' in call()
58 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: either cast from 'int' to 'long' in ret()
61 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: either cast from 'int' to 'long' in ret()
69 // The result is a 9 bit value, there is no truncation in the implicit cast. in dontwarn1()
71 // The result is a 12 bit value, there is no truncation in the implicit cast. in dontwarn1()
73 // The result is a 3 bit value, there is no truncation in the implicit cast. in dontwarn1()
75 // The result is a 16 bit value, there is no truncation in the implicit cast. in dontwarn1()
87 // Cast is not suspicious when casting macro.
93 // Don't warn about cast in macro.