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)
| 3638 | |
| 3639 | |
| 3640 | def IsDecltype(clean_lines, linenum, column): |
| 3641 | """Check if the token ending on (linenum, column) is decltype(). |
| 3642 | |
| 3643 | Args: |
| 3644 | clean_lines: A CleansedLines instance containing the file. |
| 3645 | linenum: the number of the line to check. |
| 3646 | column: end column of the token to check. |
| 3647 | Returns: |
| 3648 | True if this token is decltype() expression, False otherwise. |
| 3649 | """ |
| 3650 | (text, _, start_col) = ReverseCloseExpression(clean_lines, linenum, column) |
| 3651 | if start_col < 0: |
| 3652 | return False |
| 3653 | if Search(r'\bdecltype\s*$', text[0:start_col]): |
| 3654 | return True |
| 3655 | return False |
| 3656 | |
| 3657 | |
| 3658 | def CheckSectionSpacing(filename, clean_lines, class_info, linenum, error): |
nothing calls this directly
no test coverage detected