parameters: (clean_lines, line_number, file_extension, error)
docstring: Looks for 'using namespace foo;' which should be removed.
  
      Args:
        clean_lines: A CleansedLines instance containing the file.
        line_number: The number of the line to check.
        file_extension: The extension (dot not included) of the file.
        error: The function to call with any errors found.
docstring_summary: Looks for 'using namespace foo;' which should be removed.
docstring_tokens: Looks for using namespace foo ; which should be removed .
function: def check_using_namespace(clean_lines, line_number, file_extension, error):
      """Looks for 'using namespace foo;' which should be removed.
  
      Args:
        clean_lines: A CleansedLines instance containing the file.
        line_number: The number of the line to check.
        file_extension: The extension (dot not included) of the file.
        error: The function to call with any errors found.
      """
  
      # This check applies only to headers.
      if file_extension != 'h':
          return
  
      line = clean_lines.elided[line_number]  # Get rid of comments and strings.
  
      using_namespace_match = match(r'\s*using\s+namespace\s+(?P<method_name>\S+)\s*;\s*$', line)
      if not using_namespace_match:
          return
  
      method_name = using_namespace_match.group('method_name')
      error(line_number, 'build/using_namespace', 4,
            "Do not use 'using namespace %s;'." % method_name)
function_tokens: def check_using_namespace ( clean_lines , line_number , file_extension , error ) : # This check applies only to headers. if file_extension != 'h' : return line = clean_lines . elided [ line_number ] # Get rid of comments and strings. using_namespace_match = match ( r'\s*using\s+namespace\s+(?P<method_name>\S+)\s*;\s*$' , line ) if not using_namespace_match : return method_name = using_namespace_match . group ( 'method_name' ) error ( line_number , 'build/using_namespace' , 4 , "Do not use 'using namespace %s;'." % method_name )