diff options
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/google-readability-function.cpp')
| -rw-r--r-- | clang-tools-extra/test/clang-tidy/google-readability-function.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/clang-tools-extra/test/clang-tidy/google-readability-function.cpp b/clang-tools-extra/test/clang-tidy/google-readability-function.cpp index 65680263aa5..701c5fc4288 100644 --- a/clang-tools-extra/test/clang-tidy/google-readability-function.cpp +++ b/clang-tools-extra/test/clang-tidy/google-readability-function.cpp @@ -74,6 +74,13 @@ struct Derived : public Base { void FDef(int); // CHECK-MESSAGES: :[[@LINE-1]]:14: warning: all parameters should be named in a function // CHECK-FIXES: void FDef(int /*n*/); -void FDef(int n) {}; +void FDef(int n) {} + +void FDef2(int, int); +// CHECK-MESSAGES: :[[@LINE-1]]:15: warning: all parameters should be named in a function +// CHECK-FIXES: void FDef2(int /*n*/, int /*unused*/); +void FDef2(int n, int) {} +// CHECK-MESSAGES: :[[@LINE-1]]:22: warning: all parameters should be named in a function +// CHECK-FIXES: void FDef2(int n, int /*unused*/) {} void FNoDef(int); |

