MCPcopy Create free account
hub / github.com/apache/mesos / IsDecltype

Function IsDecltype

support/cpplint.py:3640–3655  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

3638
3639
3640def 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
3658def CheckSectionSpacing(filename, clean_lines, class_info, linenum, error):

Callers

nothing calls this directly

Calls 2

ReverseCloseExpressionFunction · 0.85
SearchFunction · 0.85

Tested by

no test coverage detected