parameters: (testname, filename, line_number, description, line_content=None)
docstring: Prints a warning to the standard output
      the warning is printed 2 times:
      1. visual studio format, so visual studio will pick up warnings
      2. gcc format, so gcc based tools pick up the warnings
docstring_summary: Prints a warning to the standard output
      the warning is printed 2 times:
      1. visual studio format, so visual studio will pick up warnings
      2. gcc format, so gcc based tools pick up the warnings
docstring_tokens: Prints a warning to the standard output the warning is printed 2 times : 1 . visual studio format so visual studio will pick up warnings 2 . gcc format so gcc based tools pick up the warnings
function: def log_warning(testname, filename, line_number, description, line_content=None):
      """
      Prints a warning to the standard output
      the warning is printed 2 times:
      1. visual studio format, so visual studio will pick up warnings
      2. gcc format, so gcc based tools pick up the warnings
      """
      if line_content is None:
          # visual studio / msbuild format
          print("{0}({1}): warning PRJ9999: {2} [{3}]".format(filename, line_number, description, testname), file=sys.stderr)
          # gcc format
          print("{0}:{1}: error: {2} [{3}]".format(filename, line_number, description, testname), file=sys.stderr)
      else:
          # visual studio / msbuild format
          print("{0}({1}): warning PRJ9999: {2}: {3} [{4}]".format(filename, line_number, description, line_content, testname), file=sys.stderr)
          # gcc format
          print("{0}:{1}: error: {2}: {3} [{4}]".format(filename, line_number, description, line_content, testname), file=sys.stderr)
  
      print("", file=sys.stderr)
      global G_WARNING_COUNT
      G_WARNING_COUNT += 1
function_tokens: def log_warning ( testname , filename , line_number , description , line_content = None ) : if line_content is None : # visual studio / msbuild format print ( "{0}({1}): warning PRJ9999: {2} [{3}]" . format ( filename , line_number , description , testname ) , file = sys . stderr ) # gcc format print ( "{0}:{1}: error: {2} [{3}]" . format ( filename , line_number , description , testname ) , file = sys . stderr ) else : # visual studio / msbuild format print ( "{0}({1}): warning PRJ9999: {2}: {3} [{4}]" . format ( filename , line_number , description , line_content , testname ) , file = sys . stderr ) # gcc format print ( "{0}:{1}: error: {2}: {3} [{4}]" . format ( filename , line_number , description , line_content , testname ) , file = sys . stderr ) print ( "" , file = sys . stderr ) global G_WARNING_COUNT G_WARNING_COUNT += 1