Commit 87082f22 authored by Mathias Goldau's avatar Mathias Goldau
Browse files

[FIX] using namespace directives are only mentioned when not found inside a cpp file

parent 5ade4ff6
......@@ -2334,9 +2334,10 @@ def CheckLanguage(filename, clean_lines, linenum, file_extension, include_state,
% (match.group(1), match.group(2)))
if Search(r'\busing namespace\b', line):
error(filename, linenum, 'build/namespaces', 5,
'Do not use namespace using-directives. '
'Use using-declarations instead.')
if( not file_extension == "cpp" ):
error(filename, linenum, 'build/namespaces', 5,
'Do not use namespace using-directives. '
'Use using-declarations instead.')
# Detect variable-length arrays.
match = Match(r'\s*(.+::)?(\w+) [a-z]\w*\[(.+)];', line)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment