[clang-tools-extra] [Clang] Fix failing clang-tidy test (PR #128051)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 20 11:06:57 PST 2025
https://github.com/Sirraide created https://github.com/llvm/llvm-project/pull/128051
#123470 broke one of the clang-tidy tests; this fixes that.
>From cc42e9e46635a33e8546852fd8146f7e397445d8 Mon Sep 17 00:00:00 2001
From: Sirraide <aeternalmail at gmail.com>
Date: Thu, 20 Feb 2025 20:06:04 +0100
Subject: [PATCH] [Clang] Fix failing clang-tidy test
---
.../test/clang-tidy/checkers/readability/named-parameter.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/clang-tools-extra/test/clang-tidy/checkers/readability/named-parameter.cpp b/clang-tools-extra/test/clang-tidy/checkers/readability/named-parameter.cpp
index c22e9c564e3ee..50433d5d12ea9 100644
--- a/clang-tools-extra/test/clang-tidy/checkers/readability/named-parameter.cpp
+++ b/clang-tools-extra/test/clang-tidy/checkers/readability/named-parameter.cpp
@@ -37,8 +37,8 @@ void operator delete[](void *x) throw();
void operator delete[](void * /*x*/) throw();
struct X {
- X operator++(int) { throw 0; }
- X operator--(int) { throw 0; }
+ void operator++(int) {}
+ void operator--(int) {}
X(X&) = delete;
X &operator=(X&) = default;
More information about the cfe-commits
mailing list