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, Fa
(clean_lines, linenum, column)
| 4647 | |
| 4648 | |
| 4649 | def IsDecltype(clean_lines, linenum, column): |
| 4650 | """Check if the token ending on (linenum, column) is decltype(). |
| 4651 | |
| 4652 | Args: |
| 4653 | clean_lines: A CleansedLines instance containing the file. |
| 4654 | linenum: the number of the line to check. |
| 4655 | column: end column of the token to check. |
| 4656 | Returns: |
| 4657 | True if this token is decltype() expression, False otherwise. |
| 4658 | """ |
| 4659 | (text, _, start_col) = ReverseCloseExpression(clean_lines, linenum, column) |
| 4660 | if start_col < 0: |
| 4661 | return False |
| 4662 | return bool(re.search(r"\bdecltype\s*$", text[0:start_col])) |
| 4663 | |
| 4664 | |
| 4665 | def CheckSectionSpacing(filename, clean_lines, class_info, linenum, error): |
nothing calls this directly
no test coverage detected