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

Function IsBlankLine

cpplint.py:3973–3985  ·  view source on GitHub ↗

Returns true if the given line is blank. We consider a line to be blank if the line is empty or consists of only white spaces. Args: line: A line of a string. Returns: True, if the given line is blank.

(line)

Source from the content-addressed store, hash-verified

3971
3972
3973def IsBlankLine(line):
3974 """Returns true if the given line is blank.
3975
3976 We consider a line to be blank if the line is empty or consists of
3977 only white spaces.
3978
3979 Args:
3980 line: A line of a string.
3981
3982 Returns:
3983 True, if the given line is blank.
3984 """
3985 return not line or line.isspace()
3986
3987
3988def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line, error):

Callers 3

CheckSpacingFunction · 0.85
CheckSectionSpacingFunction · 0.85
GetPreviousNonBlankLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected