================
@@ -66,7 +44,17 @@ class SerializationFormat
static char ID; // For RTTIExtends.
protected:
+ // Helpers providing access to implementation details of basic data
structures
+ // for efficient serialization/deserialization.
+#define FIELD(CLASS, FIELD_NAME)
\
+ static const auto &get##FIELD_NAME(const CLASS &X) { return X.FIELD_NAME; }
\
+ static auto &get##FIELD_NAME(CLASS &X) { return X.FIELD_NAME; }
+#include "clang/Analysis/Scalable/Model/PrivateFieldNames.def"
+
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS;
+
+private:
+ void anchor() override;
----------------
steakhal wrote:
I've found it:
https://llvm.org/docs/CodingStandards.html#provide-a-virtual-method-anchor-for-classes-in-headers
https://github.com/llvm/llvm-project/pull/180779
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits