Skip to content

cpplint does not detect space before parens #62

@janusw

Description

@janusw

Consider the following C++ code:

int cg() {
  return 0;
}

int main() {
  int i = cg ();  // extra space before parens detected
  return cg ();   // not detected
}

cpplint correctly detects the space before parens in the first function call

parens.cpp:6:  Extra space before ( in function call  [whitespace/parens] [4]

but unfortunately misses the second one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions