[clang-tools-extra] [clang-tidy] Fix performance-trivially-destructible with C++20 modules (PR #178471)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 31 08:18:17 PST 2026


================
@@ -0,0 +1,27 @@
+// RUN: rm -rf %t
+// RUN: mkdir -p %t
+// RUN: split-file %s %t
+// RUN: %clang -std=c++20 -x c++-module --precompile %t/mymodule.cppm -o %t/mymodule.pcm -I%t
+// RUN: %check_clang_tidy -std=c++20 %t/main.cpp performance-trivially-destructible %t/out \
----------------
vbvictor wrote:

```suggestion
// RUN: %check_clang_tidy -std=c++20-or-later %t/main.cpp performance-trivially-destructible %t/out \
```

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


More information about the cfe-commits mailing list