parameters: (msg)
docstring: Diagnoses the NUS disease, given the error messages by the compiler.
docstring_summary: Diagnoses the NUS disease, given the error messages by the compiler.
docstring_tokens: Diagnoses the NUS disease given the error messages by the compiler .
function: def _NeedToUseSymbolDiagnoser(msg):
    """Diagnoses the NUS disease, given the error messages by the compiler."""
  
    gcc_regex = (_GCC_FILE_LINE_RE + r'error: \'(?P<symbol>.+)\' '
                 r'(was not declared in this scope|has not been declared)')
    clang_regex = (_CLANG_FILE_LINE_RE +
                   r'error: (use of undeclared identifier|unknown type name|'
                   r'no template named) \'(?P<symbol>[^\']+)\'')
    diagnosis = """
  '%(symbol)s' is defined by Google Mock in the testing namespace.
  Did you forget to write
    using testing::%(symbol)s;
  ?"""
    for m in (list(_FindAllMatches(gcc_regex, msg)) +
              list(_FindAllMatches(clang_regex, msg))):
      symbol = m.groupdict()['symbol']
      if symbol in _COMMON_GMOCK_SYMBOLS:
        yield ('NUS', 'Need to Use Symbol', diagnosis % m.groupdict())
function_tokens: def _NeedToUseSymbolDiagnoser ( msg ) : gcc_regex = ( _GCC_FILE_LINE_RE + r'error: \'(?P<symbol>.+)\' ' r'(was not declared in this scope|has not been declared)' ) clang_regex = ( _CLANG_FILE_LINE_RE + r'error: (use of undeclared identifier|unknown type name|' r'no template named) \'(?P<symbol>[^\']+)\'' ) diagnosis = """
  '%(symbol)s' is defined by Google Mock in the testing namespace.
  Did you forget to write
    using testing::%(symbol)s;
  ?""" for m in ( list ( _FindAllMatches ( gcc_regex , msg ) ) + list ( _FindAllMatches ( clang_regex , msg ) ) ) : symbol = m . groupdict ( ) [ 'symbol' ] if symbol in _COMMON_GMOCK_SYMBOLS : yield ( 'NUS' , 'Need to Use Symbol' , diagnosis % m . groupdict ( ) )