mirror of
https://github.com/google/googletest.git
synced 2025-01-21 15:11:57 +08:00
Improves support for Clang in Google Mock Doctor.
This commit is contained in:
parent
f4eeaedb39
commit
787146bdb7
@ -394,8 +394,9 @@ def _NeedToUseSymbolDiagnoser(msg):
|
|||||||
|
|
||||||
gcc_regex = (_GCC_FILE_LINE_RE + r'error: \'(?P<symbol>.+)\' '
|
gcc_regex = (_GCC_FILE_LINE_RE + r'error: \'(?P<symbol>.+)\' '
|
||||||
r'(was not declared in this scope|has not been declared)')
|
r'(was not declared in this scope|has not been declared)')
|
||||||
clang_regex = (_CLANG_FILE_LINE_RE + r'error: use of undeclared identifier '
|
clang_regex = (_CLANG_FILE_LINE_RE +
|
||||||
r'\'(?P<symbol>.+)\'')
|
r'error: (use of undeclared identifier|unknown type name) '
|
||||||
|
r'\'(?P<symbol>[^\']+)\'')
|
||||||
diagnosis = """
|
diagnosis = """
|
||||||
'%(symbol)s' is defined by Google Mock in the testing namespace.
|
'%(symbol)s' is defined by Google Mock in the testing namespace.
|
||||||
Did you forget to write
|
Did you forget to write
|
||||||
|
Loading…
x
Reference in New Issue
Block a user