diff options
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/checkers/modernize/redundant-void-arg-delayed.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/checkers/modernize/redundant-void-arg-delayed.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/test/clang-tidy/checkers/modernize/redundant-void-arg-delayed.cpp b/clang-tools-extra/test/clang-tidy/checkers/modernize/redundant-void-arg-delayed.cpp index dd88775..4e05ada 100644 --- a/clang-tools-extra/test/clang-tidy/checkers/modernize/redundant-void-arg-delayed.cpp +++ b/clang-tools-extra/test/clang-tidy/checkers/modernize/redundant-void-arg-delayed.cpp @@ -2,7 +2,7 @@ int foo(void) { // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: redundant void argument list in function definition [modernize-redundant-void-arg] -// CHECK-FIXES: {{^}}int foo() {{{$}} +// CHECK-FIXES: int foo() { return 0; } @@ -10,7 +10,7 @@ template <class T> struct MyFoo { int foo(void) { // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: redundant void argument list in function definition [modernize-redundant-void-arg] -// CHECK-FIXES: {{^}} int foo() {{{$}} +// CHECK-FIXES: int foo() { return 0; } }; @@ -22,7 +22,7 @@ struct MyBar { // This declaration isn't instantiated and won't be parsed 'delayed-template-parsing'. int foo(void) { // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: redundant void argument list in function definition [modernize-redundant-void-arg] -// CHECK-FIXES: {{^}} int foo() {{{$}} +// CHECK-FIXES: int foo() { return 0; } }; |