proxygen
|
Functions | |
def | _FindAllMatches (regex, s) |
def | _GenericDiagnoser (short_name, long_name, diagnoses, msg) |
def | _NeedToReturnReferenceDiagnoser (msg) |
def | _NeedToReturnSomethingDiagnoser (msg) |
def | _NeedToReturnNothingDiagnoser (msg) |
def | _IncompleteByReferenceArgumentDiagnoser (msg) |
def | _OverloadedFunctionMatcherDiagnoser (msg) |
def | _OverloadedFunctionActionDiagnoser (msg) |
def | _OverloadedMethodActionDiagnoser (msg) |
def | _MockObjectPointerDiagnoser (msg) |
def | _NeedToUseSymbolDiagnoser (msg) |
def | _NeedToUseReturnNullDiagnoser (msg) |
def | _TypeInTemplatedBaseDiagnoser (msg) |
def | _WrongMockMethodMacroDiagnoser (msg) |
def | _WrongParenPositionDiagnoser (msg) |
def | Diagnose (msg) |
def | main () |
Variables | |
string | __author__ = 'wan@google.com (Zhanyong Wan)' |
string | _VERSION = '1.0.3' |
string | _EMAIL = 'googlemock@googlegroups.com' |
list | _COMMON_GMOCK_SYMBOLS |
string | _GCC_FILE_LINE_RE = r'(?P<file>.*):(?P<line>\d+):(\d+:)?\s+' |
string | _CLANG_FILE_LINE_RE = r'(?P<file>.*):(?P<line>\d+):(?P<column>\d+):\s+' |
tuple | _CLANG_NON_GMOCK_FILE_LINE_RE |
list | _DIAGNOSERS |
|
private |
Generates all matches of regex in string s.
Definition at line 137 of file gmock_doctor.py.
Referenced by _GenericDiagnoser(), _NeedToUseSymbolDiagnoser(), and _TypeInTemplatedBaseDiagnoser().
|
private |
Diagnoses the given disease by pattern matching. Can provide different diagnoses for different patterns. Args: short_name: Short name of the disease. long_name: Long name of the disease. diagnoses: A list of pairs (regex, pattern for formatting the diagnosis for matching regex). msg: Compiler's error messages. Yields: Tuples of the form (short name of disease, long name of disease, diagnosis).
Definition at line 144 of file gmock_doctor.py.
References _FindAllMatches().
Referenced by _IncompleteByReferenceArgumentDiagnoser(), _MockObjectPointerDiagnoser(), _NeedToReturnNothingDiagnoser(), _NeedToReturnReferenceDiagnoser(), _NeedToReturnSomethingDiagnoser(), _NeedToUseReturnNullDiagnoser(), _OverloadedFunctionActionDiagnoser(), _OverloadedFunctionMatcherDiagnoser(), _OverloadedMethodActionDiagnoser(), _TypeInTemplatedBaseDiagnoser(), _WrongMockMethodMacroDiagnoser(), and _WrongParenPositionDiagnoser().
|
private |
Diagnoses the IBRA disease, given the error messages by the compiler.
Definition at line 255 of file gmock_doctor.py.
References _GenericDiagnoser().
|
private |
Diagnoses the MOP disease, given the error messages by the compiler.
Definition at line 357 of file gmock_doctor.py.
References _GenericDiagnoser().
|
private |
Diagnoses the NRN disease, given the error messages by the compiler.
Definition at line 218 of file gmock_doctor.py.
References _GenericDiagnoser().
|
private |
Diagnoses the NRR disease, given the error messages by the compiler.
Definition at line 166 of file gmock_doctor.py.
References _GenericDiagnoser().
|
private |
Diagnoses the NRS disease, given the error messages by the compiler.
Definition at line 191 of file gmock_doctor.py.
References _GenericDiagnoser().
|
private |
Diagnoses the NRNULL disease, given the error messages by the compiler.
Definition at line 416 of file gmock_doctor.py.
References _GenericDiagnoser().
|
private |
Diagnoses the NUS disease, given the error messages by the compiler.
Definition at line 396 of file gmock_doctor.py.
References _FindAllMatches(), and bm.list.
|
private |
Diagnoses the OFA disease, given the error messages by the compiler.
Definition at line 303 of file gmock_doctor.py.
References _GenericDiagnoser().
|
private |
Diagnoses the OFM disease, given the error messages by the compiler.
Definition at line 282 of file gmock_doctor.py.
References _GenericDiagnoser().
|
private |
Diagnoses the OMA disease, given the error messages by the compiler.
Definition at line 328 of file gmock_doctor.py.
References _GenericDiagnoser().
|
private |
Diagnoses the TTB disease, given the error messages by the compiler.
Definition at line 442 of file gmock_doctor.py.
References _FindAllMatches(), and _GenericDiagnoser().
|
private |
Diagnoses the WMM disease, given the error messages by the compiler.
Definition at line 511 of file gmock_doctor.py.
References _GenericDiagnoser().
|
private |
Diagnoses the WPP disease, given the error messages by the compiler.
Definition at line 539 of file gmock_doctor.py.
References _GenericDiagnoser().
def gmock_doctor.Diagnose | ( | msg | ) |
Generates all possible diagnoses given the compiler error message.
Definition at line 577 of file gmock_doctor.py.
Referenced by main().
def gmock_doctor.main | ( | void | ) |
Definition at line 594 of file gmock_doctor.py.
References Diagnose(), and folly::detail::distributed_mutex.strip().
|
private |
Definition at line 34 of file gmock_doctor.py.
Definition at line 132 of file gmock_doctor.py.
|
private |
Definition at line 133 of file gmock_doctor.py.
|
private |
Definition at line 43 of file gmock_doctor.py.
|
private |
Definition at line 560 of file gmock_doctor.py.
|
private |
Definition at line 41 of file gmock_doctor.py.
Definition at line 131 of file gmock_doctor.py.
|
private |
Definition at line 39 of file gmock_doctor.py.