aboutsummaryrefslogtreecommitdiff
path: root/clint.py
diff options
context:
space:
mode:
authorJulian Orth <ju.orth@gmail.com>2014-03-05 21:25:44 +0100
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-27 14:03:35 -0300
commit4bfb03c6303c5f2b47d870b22146bd0bf5a47e99 (patch)
tree27c1fc36bc427a1407d987f197b82eb70ff75118 /clint.py
parentb3edf6c065b3d1b6949b7007dd2b8339dc329562 (diff)
downloadrneovim-4bfb03c6303c5f2b47d870b22146bd0bf5a47e99.tar.gz
rneovim-4bfb03c6303c5f2b47d870b22146bd0bf5a47e99.tar.bz2
rneovim-4bfb03c6303c5f2b47d870b22146bd0bf5a47e99.zip
remove "stream check" from CheckIncludeLine
irrelevant
Diffstat (limited to 'clint.py')
-rwxr-xr-xclint.py18
1 files changed, 4 insertions, 14 deletions
diff --git a/clint.py b/clint.py
index ba62680080..383daad974 100755
--- a/clint.py
+++ b/clint.py
@@ -3607,10 +3607,10 @@ def CheckIncludeLine(filename, clean_lines, linenum, include_state, error):
line = clean_lines.lines[linenum]
# "include" should use the new style "foo/bar.h" instead of just "bar.h"
- if not (filename.endswith('.c') or filename.endswith('.h')):
- if _RE_PATTERN_INCLUDE_NEW_STYLE.search(line):
- error(filename, linenum, 'build/include', 4,
- 'Include the directory when naming .h files')
+ # XXX: neovim doesn't currently use this style
+ # if _RE_PATTERN_INCLUDE_NEW_STYLE.search(line):
+ # error(filename, linenum, 'build/include', 4,
+ # 'Include the directory when naming .h files')
# we shouldn't include a file more than once. actually, there are a
# handful of instances where doing so is okay, but in general it's
@@ -3650,16 +3650,6 @@ def CheckIncludeLine(filename, clean_lines, linenum, include_state, error):
'Include "%s" not in alphabetical order' % include)
include_state.SetLastHeader(canonical_include)
- # Look for any of the stream classes that are part of standard C++.
- match = _RE_PATTERN_INCLUDE.match(line)
- if match:
- include = match.group(2)
- if Match(r'(f|ind|io|i|o|parse|pf|stdio|str|)?stream$', include):
- # Many unit tests use cout, so we exempt them.
- if not _IsTestFilename(filename):
- error(filename, linenum, 'readability/streams', 3,
- 'Streams are highly discouraged.')
-
def _GetTextInside(text, start_pattern):
r"""Retrieves all the text between matching open and close parentheses.