mirror of
https://github.com/tiennm99/styleguide.git
synced 2026-08-06 16:25:06 +00:00
Reverted r70, at asvitkine's request
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
#!/usr/bin/python2.4
|
||||
# -*- coding: utf-8; -*-
|
||||
#
|
||||
# Copyright (c) 2011 Google Inc. All rights reserved.
|
||||
# Copyright (C) 2009 Torch Mobile Inc.
|
||||
# Copyright (c) 2009 Google Inc. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
@@ -349,7 +348,7 @@ class CpplintTest(CpplintTestBase):
|
||||
'Using C-style cast. Use static_cast<int>(...) instead'
|
||||
' [readability/casting] [4]')
|
||||
self.TestLint(
|
||||
'int* a = (int *)NULL;',
|
||||
'int *a = (int *)NULL;',
|
||||
'Using C-style cast. Use reinterpret_cast<int *>(...) instead'
|
||||
' [readability/casting] [4]')
|
||||
|
||||
@@ -1647,19 +1646,6 @@ class CpplintTest(CpplintTestBase):
|
||||
self.TestLint('f(a, /* name */ b);', '')
|
||||
self.TestLint('f(a, /* name */b);', '')
|
||||
|
||||
def testPointerDeclarationWhitespace(self):
|
||||
self.TestLint('int* b;', '')
|
||||
self.TestLint('int *b;',
|
||||
'Declaration has space between type name and * in int *b '
|
||||
'[whitespace/declaration] [3]')
|
||||
self.TestLint('return *b;', '')
|
||||
self.TestLint('delete *b;', '')
|
||||
self.TestLint('int& b;', '')
|
||||
self.TestLint('int &b;',
|
||||
'Declaration has space between type name and & in int &b '
|
||||
'[whitespace/declaration] [3]')
|
||||
self.TestLint('return &b;', '')
|
||||
|
||||
def testIndent(self):
|
||||
self.TestLint('static int noindent;', '')
|
||||
self.TestLint(' int two_space_indent;', '')
|
||||
|
||||
Reference in New Issue
Block a user