[clang] [APINotes] Upstream APINotesWriter (PR #65187)
Egor Zhdan via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 4 09:50:18 PDT 2023
================
@@ -19,11 +19,11 @@
namespace clang {
namespace api_notes {
-class APINotesWriter::Implementation {
- template <typename T>
- using VersionedSmallVector =
- llvm::SmallVector<std::pair<llvm::VersionTuple, T>, 1>;
+template <typename T>
+using VersionedSmallVector =
+ llvm::SmallVector<std::pair<llvm::VersionTuple, T>, 1>;
----------------
egorzhdan wrote:
We can't access `APINotesWriter::Implementation::VersionedSmallVector` from `APINotesWriter::addObjCContext` unless we declare `friend class APINotesWriter`.
I just did that, let me know if you think this is better 🙂
https://github.com/llvm/llvm-project/pull/65187
More information about the cfe-commits
mailing list