MCPcopy Index your code
hub / github.com/cpplint/cpplint / testVariableDeclarations

Method testVariableDeclarations

cpplint_unittest.py:793–802  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

791
792 # Test Variable Declarations.
793 def testVariableDeclarations(self):
794 self.TestLint(
795 "long a = 65;",
796 "Use int16_t/int64_t/etc, rather than the C type long [runtime/int] [4]",
797 )
798 self.TestLint("long double b = 65.0;", "")
799 self.TestLint(
800 "long long aa = 6565;",
801 "Use int16_t/int64_t/etc, rather than the C type long [runtime/int] [4]",
802 )
803
804 # Test C-style cast cases.
805 def testCStyleCast(self):

Callers

nothing calls this directly

Calls 1

TestLintMethod · 0.80

Tested by

no test coverage detected