From 787146bdb730e9c3731c989a8707ff8f018a0a0d Mon Sep 17 00:00:00 2001 From: vladlosev Date: Tue, 16 Aug 2011 00:51:14 +0000 Subject: Improves support for Clang in Google Mock Doctor. --- scripts/gmock_doctor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/gmock_doctor.py b/scripts/gmock_doctor.py index afd59101..e086c919 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.+)\' ' 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.+)\'') + clang_regex = (_CLANG_FILE_LINE_RE + + r'error: (use of undeclared identifier|unknown type name) ' + r'\'(?P[^\']+)\'') diagnosis = """ '%(symbol)s' is defined by Google Mock in the testing namespace. Did you forget to write -- cgit v1.2.3