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.