diff options
author | Julian Orth <ju.orth@gmail.com> | 2014-03-05 21:25:44 +0100 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-27 14:03:35 -0300 |
commit | 4bfb03c6303c5f2b47d870b22146bd0bf5a47e99 (patch) | |
tree | 27c1fc36bc427a1407d987f197b82eb70ff75118 /clint.py | |
parent | b3edf6c065b3d1b6949b7007dd2b8339dc329562 (diff) | |
download | rneovim-4bfb03c6303c5f2b47d870b22146bd0bf5a47e99.tar.gz rneovim-4bfb03c6303c5f2b47d870b22146bd0bf5a47e99.tar.bz2 rneovim-4bfb03c6303c5f2b47d870b22146bd0bf5a47e99.zip |
remove "stream check" from CheckIncludeLine
irrelevant
Diffstat (limited to 'clint.py')
-rwxr-xr-x | clint.py | 18 |
1 files changed, 4 insertions, 14 deletions
@@ -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. |