diff options
author | vladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386> | 2011-08-16 00:51:14 +0000 |
---|---|---|
committer | vladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386> | 2011-08-16 00:51:14 +0000 |
commit | 01fc6d6d4ed1ed9747902ea18a86081951dfeb19 (patch) | |
tree | cad4f03f405fc3928f8320e7b8e679602f7c92b5 | |
parent | 73471a6d7e9c964a7f2ca933e9d191bcf0c2e5a3 (diff) | |
download | googlemock-01fc6d6d4ed1ed9747902ea18a86081951dfeb19.tar.gz |
Improves support for Clang in Google Mock Doctor.
git-svn-id: http://googlemock.googlecode.com/svn/trunk@394 8415998a-534a-0410-bf83-d39667b30386
-rwxr-xr-x | scripts/gmock_doctor.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/gmock_doctor.py b/scripts/gmock_doctor.py index afd5910..e086c91 100755 --- a/scripts/gmock_doctor.py +++ b/scripts/gmock_doctor.py @@ -394,8 +394,9 @@ 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 ' - r'\'(?P<symbol>.+)\'') + clang_regex = (_CLANG_FILE_LINE_RE + + r'error: (use of undeclared identifier|unknown type name) ' + r'\'(?P<symbol>[^\']+)\'') diagnosis = """ '%(symbol)s' is defined by Google Mock in the testing namespace. Did you forget to write |