MCPcopy Index your code
hub / github.com/cpplint/cpplint / IsDecltype

Function IsDecltype

cpplint.py:4649–4662  ·  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, Fa

(clean_lines, linenum, column)

Source from the content-addressed store, hash-verified

4647
4648
4649def 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
4665def CheckSectionSpacing(filename, clean_lines, class_info, linenum, error):

Callers

nothing calls this directly

Calls 1

ReverseCloseExpressionFunction · 0.85

Tested by

no test coverage detected