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)
| 4715 | |
| 4716 | |
| 4717 | def IsDecltype(clean_lines, linenum, column): |
| 4718 | """Check if the token ending on (linenum, column) is decltype(). |
| 4719 | |
| 4720 | Args: |
| 4721 | clean_lines: A CleansedLines instance containing the file. |
| 4722 | linenum: the number of the line to check. |
| 4723 | column: end column of the token to check. |
| 4724 | Returns: |
| 4725 | True if this token is decltype() expression, False otherwise. |
| 4726 | """ |
| 4727 | (text, _, start_col) = ReverseCloseExpression(clean_lines, linenum, column) |
| 4728 | if start_col < 0: |
| 4729 | return False |
| 4730 | return bool(re.search(r"\bdecltype\s*$", text[0:start_col])) |
| 4731 | |
| 4732 | |
| 4733 | def CheckSectionSpacing(filename, clean_lines, class_info, linenum, error): |
nothing calls this directly
no test coverage detected
searching dependent graphs…