Skip to content

Revise comments that are copied from cpplint.py #21

@matyalatte

Description

@matyalatte

cpplint-cpp copied numerous comments directly from cpplint.py without modifications. Some of them do not match the implementation of cpplint-cpp.

For example, line_utils.h has python style docstrings and their return values do not match the actual APIs.

/*Find the position just after the end of current parenthesized expression.

Args:
    line: a CleansedLines line.
    startpos: start searching at this position.
    stack: nesting stack at startpos.

Returns:
    On finding matching end: (index just after matching end, None)
*/
void FindEndOfExpressionInLine(const std::string& line,
                               size_t* startpos,
                               std::stack<char>* stack);

Metadata

Metadata

Assignees

No one assigned

    Labels

    code qualitySuggestions to enhance readability and maintainability

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions