[clang-tools-extra] [clang-tidy] Added bugprone-exception-rethrow check (PR #86448)

via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 28 14:35:16 PDT 2024


================
@@ -0,0 +1,103 @@
+// RUN: %check_clang_tidy %s bugprone-exception-rethrow %t -- -- -fexceptions
+
+struct exception {};
+
+namespace std {
+  template <class T>
+  T&& move(T &x) {
----------------
isuckatcs wrote:

```suggestion
  T&& move(T &&x) {
```
The official signature is the one below.
```c++
template< class T >
typename std::remove_reference<T>::type&& move( T&& t ) noexcept;
```

https://github.com/llvm/llvm-project/pull/86448


More information about the cfe-commits mailing list