test-tidy: Check for space between function name and (

Disallow an extraneous space in a function call between
the function name and the opening parenthesis in Rust
code, while ignoring macro declarations.

This commit fixes #13980.
This commit is contained in:
Daan Sprenkels 2016-10-30 19:08:14 +01:00
parent 84055461aa
commit 179e11ad8d
3 changed files with 11 additions and 1 deletions

View file

@ -52,7 +52,9 @@ impl test {
type Text_Fun3 = fn( i32) -> i32;
fn test_fun3<Text_Fun3>( y: Text_Fun3) {
test_fun( 1);
let (x, y) = (1, 2) // Should not trigger
test_fun( x);
test_fun (y);
}
// Should not be triggered