[clang] [clang][ExtractAPI] Add ability to create multiple symbol graphs (PR #86676)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 26 08:21:45 PDT 2024
================
@@ -242,79 +260,168 @@ struct APIRecord {
/// Objective-C class/instance methods).
DeclarationFragments SubHeading;
- /// Information about the parent record of this record.
- HierarchyInformation ParentInformation;
-
/// Whether the symbol was defined in a system header.
bool IsFromSystemHeader;
+ AccessControl Access;
+
private:
const RecordKind Kind;
+ friend class RecordContext;
+ // Used to store the next child record in RecordContext. This works because
+ // APIRecords semantically only have one parent.
+ mutable APIRecord *NextInContex = nullptr;
public:
+ APIRecord *getNextInContex() const { return NextInContex; }
+
----------------
QuietMisdreavus wrote:
Looks like `NextInContext` is typo'd here.
https://github.com/llvm/llvm-project/pull/86676
More information about the cfe-commits
mailing list