Skip to content

Commit 29361b3

Browse files
authored
[Clang] Fix failing clang-tidy test (llvm#128051)
llvm#123470 broke one of the clang-tidy tests; this fixes that.
1 parent 5bc5161 commit 29361b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang-tools-extra/test/clang-tidy/checkers/readability/named-parameter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ void operator delete[](void *x) throw();
3737
void operator delete[](void * /*x*/) throw();
3838

3939
struct X {
40-
X operator++(int) { throw 0; }
41-
X operator--(int) { throw 0; }
40+
void operator++(int) {}
41+
void operator--(int) {}
4242

4343
X(X&) = delete;
4444
X &operator=(X&) = default;

0 commit comments

Comments
 (0)