Commit 3805fd78 authored by Mathias Goldau's avatar Mathias Goldau
Browse files

[MERGE]

parents adc10626 87082f22
...@@ -2334,9 +2334,10 @@ def CheckLanguage(filename, clean_lines, linenum, file_extension, include_state, ...@@ -2334,9 +2334,10 @@ def CheckLanguage(filename, clean_lines, linenum, file_extension, include_state,
% (match.group(1), match.group(2))) % (match.group(1), match.group(2)))
if Search(r'\busing namespace\b', line): if Search(r'\busing namespace\b', line):
error(filename, linenum, 'build/namespaces', 5, if( not file_extension == "cpp" ):
'Do not use namespace using-directives. ' error(filename, linenum, 'build/namespaces', 5,
'Use using-declarations instead.') 'Do not use namespace using-directives. '
'Use using-declarations instead.')
# Detect variable-length arrays. # Detect variable-length arrays.
match = Match(r'\s*(.+::)?(\w+) [a-z]\w*\[(.+)];', line) 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