MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / IsDecltype

Function IsDecltype

util/cpplint.py:3571–3586  ·  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

3569
3570
3571def 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
3589def 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