summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386>2011-08-25 21:35:10 +0000
committervladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386>2011-08-25 21:35:10 +0000
commit6f00403b0a79708ddb45040e3d3c53adefa18b88 (patch)
treed272c56f6198c2d46be935ee4e6a723113b99870
parent01fc6d6d4ed1ed9747902ea18a86081951dfeb19 (diff)
downloadgooglemock-6f00403b0a79708ddb45040e3d3c53adefa18b88.tar.gz
More Clang support improvements in Google Mock Doctor.
git-svn-id: http://googlemock.googlecode.com/svn/trunk@395 8415998a-534a-0410-bf83-d39667b30386
-rwxr-xr-xscripts/gmock_doctor.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/gmock_doctor.py b/scripts/gmock_doctor.py
index e086c91..ea930a3 100755
--- a/scripts/gmock_doctor.py
+++ b/scripts/gmock_doctor.py
@@ -173,7 +173,7 @@ def _NeedToReturnReferenceDiagnoser(msg):
r'(.*\n)*?' +
_CLANG_NON_GMOCK_FILE_LINE_RE +
r'note: in instantiation of function template specialization '
- r'\'testing::internal::ReturnAction<(?P<type>).*>'
+ r'\'testing::internal::ReturnAction<(?P<type>.*)>'
r'::operator Action<.*>\' requested here')
diagnosis = """
You are using a Return() action in a function that returns a reference to
@@ -192,11 +192,11 @@ def _NeedToReturnSomethingDiagnoser(msg):
r'|(error: control reaches end of non-void function)')
clang_regex1 = (_CLANG_FILE_LINE_RE +
r'error: cannot initialize return object '
- r'of type \'Result\' \(aka \'(?P<return_type>).*\'\) '
+ r'of type \'Result\' \(aka \'(?P<return_type>.*)\'\) '
r'with an rvalue of type \'void\'')
clang_regex2 = (_CLANG_FILE_LINE_RE +
r'error: cannot initialize return object '
- r'of type \'(?P<return_type>).*\' '
+ r'of type \'(?P<return_type>.*)\' '
r'with an rvalue of type \'void\'')
diagnosis = """
You are using an action that returns void, but it needs to return
@@ -395,8 +395,8 @@ 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'\'(?P<symbol>[^\']+)\'')
+ 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