Check if the token ending on (linenum, column) is decltype(). Args: clean_lines: A CleansedLines instance containing the file. linenum: the number of the line to check. column: end column of the token to check. Returns: True if this token is decltype() expression, False otherwis
(clean_lines, linenum, column)
| 3569 | |
| 3570 | |
| 3571 | def IsDecltype(clean_lines, linenum, column): |
| 3572 | """Check if the token ending on (linenum, column) is decltype(). |
| 3573 | |
| 3574 | Args: |
| 3575 | clean_lines: A CleansedLines instance containing the file. |
| 3576 | linenum: the number of the line to check. |
| 3577 | column: end column of the token to check. |
| 3578 | Returns: |
| 3579 | True if this token is decltype() expression, False otherwise. |
| 3580 | """ |
| 3581 | (text, _, start_col) = ReverseCloseExpression(clean_lines, linenum, column) |
| 3582 | if start_col < 0: |
| 3583 | return False |
| 3584 | if Search(r'\bdecltype\s*$', text[0:start_col]): |
| 3585 | return True |
| 3586 | return False |
| 3587 | |
| 3588 | |
| 3589 | def CheckSectionSpacing(filename, clean_lines, class_info, linenum, error): |
nothing calls this directly
no test coverage detected