class _BlockInfo(object):
Known subclasses: niryo_libraries.roslint.cpplint._ClassInfo
, niryo_libraries.roslint.cpplint._ExternCInfo
, niryo_libraries.roslint.cpplint._NamespaceInfo
Constructor: _BlockInfo(linenum, seen_open_brace)
Stores information about a generic block of code.
Method | __init__ |
Undocumented |
Method |
|
Run checks that applies to text up to the opening brace. |
Method |
|
Run checks that applies to text after the closing brace. |
Method |
|
Returns true if this block is a _BlockInfo. |
Instance Variable | check |
Undocumented |
Instance Variable | inline |
Undocumented |
Instance Variable | open |
Undocumented |
Instance Variable | seen |
Undocumented |
Instance Variable | starting |
Undocumented |
niryo_libraries.roslint.cpplint._ClassInfo
Run checks that applies to text up to the opening brace.
This is mostly for checking the text after the class identifier and the "{", usually where the base class is specified. For other blocks, there isn't much to check, so we always pass.
- Args:
- filename: The name of the current file. clean_lines: A CleansedLines instance containing the file. linenum: The number of the line to check. error: The function to call with any errors found.
niryo_libraries.roslint.cpplint._ClassInfo
, niryo_libraries.roslint.cpplint._NamespaceInfo
Run checks that applies to text after the closing brace.
This is mostly used for checking end of namespace comments.
- Args:
- filename: The name of the current file. clean_lines: A CleansedLines instance containing the file. linenum: The number of the line to check. error: The function to call with any errors found.
Returns true if this block is a _BlockInfo.
This is convenient for verifying that an object is an instance of a _BlockInfo, but not an instance of any of the derived classes.
- Returns:
- True for this class, False for derived classes.
niryo_libraries.roslint.cpplint._ClassInfo
, niryo_libraries.roslint.cpplint._NamespaceInfo
Undocumented