[clang-tools-extra] [clang-tidy] Fix performance-trivially-destructible with C++20 modules (PR #178471)
Victor Chernyakin via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 25 20:18:37 PDT 2026
================
@@ -0,0 +1,61 @@
+// 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
----------------
localspook wrote:
Nit: I think clang can infer this is a module from the `.cppm` extension:
```suggestion
// RUN: %clang -std=c++20 --precompile %t/mymodule.cppm -o %t/mymodule.pcm -I%t
```
https://github.com/llvm/llvm-project/pull/178471
More information about the cfe-commits
mailing list