[clang] [APINotes] Allow annotating a C++ type as non-copyable in Swift (PR #90064)

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 25 07:30:44 PDT 2024


================
@@ -1146,6 +1146,12 @@ class TagTableInfo : public CommonTypeTableInfo<TagTableInfo, TagInfo> {
 
     writer.write<uint8_t>(Flags);
 
+    if (auto Copyable = TI.isSwiftCopyable()) {
----------------
compnerd wrote:

Unnecessary braces and we should be able to use the named constants here.

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


More information about the cfe-commits mailing list