We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 481adab commit d333d55Copy full SHA for d333d55
1 file changed
cpplint_unittest.py
@@ -632,6 +632,10 @@ def testCStyleCast(self):
632
'uint64 a = (uint64)1.0;',
633
'Using C-style cast. Use static_cast<uint64>(...) instead'
634
' [readability/casting] [4]')
635
+ self.TestLint(
636
+ 'size_t a = (size_t)1.0;',
637
+ 'Using C-style cast. Use static_cast<size_t>(...) instead'
638
+ ' [readability/casting] [4]')
639
640
# These shouldn't be recognized casts.
641
self.TestLint('u a = (u)NULL;', '')
0 commit comments