[clang] [clang] Fix PS "selective" DLL import/export of vtable & typeinfo (PR #92579)

Paul T Robinson via cfe-commits cfe-commits at lists.llvm.org
Fri May 17 12:22:21 PDT 2024


================
@@ -1793,6 +1793,36 @@ void ItaniumCXXABI::EmitDestructorCall(CodeGenFunction &CGF,
                             ThisTy, VTT, VTTTy, nullptr);
 }
 
+// Check if any non-inline method has the specified attribute.
+template <typename T>
+static bool CXXRecordNonInlineHasAttr(const CXXRecordDecl *RD) {
+  for (const auto *D : RD->noload_decls())
----------------
pogo59 wrote:

Please put braces around the `for` loop body. Technically it is a single-statement body but it's long enough that I think braces will be helpful.

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


More information about the cfe-commits mailing list