diff options
author | Daniel Grumberg <dgrumberg@apple.com> | 2024-08-20 15:36:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-20 15:36:46 +0100 |
commit | 8f4f3df3c0ffc22c09d9201980a88ebb8aecc8f8 (patch) | |
tree | e86d346fe3072d309e655b114b44acc34f806ebf /clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp | |
parent | 74f5ee4ffe89da4a0e9c762c69f8a68536fbf754 (diff) | |
download | llvm-8f4f3df3c0ffc22c09d9201980a88ebb8aecc8f8.zip llvm-8f4f3df3c0ffc22c09d9201980a88ebb8aecc8f8.tar.gz llvm-8f4f3df3c0ffc22c09d9201980a88ebb8aecc8f8.tar.bz2 |
Reenable anon structs (#104922)
Add back missing includes and revert revert "[clang][ExtractAPI] Stop
dropping fields of nested anonymous record types when they aren't
attached to variable declaration (#104600)"
Diffstat (limited to 'clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp')
-rw-r--r-- | clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp b/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp index 1f8029c..1bce9c5 100644 --- a/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp +++ b/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp @@ -673,14 +673,6 @@ bool SymbolGraphSerializer::shouldSkip(const APIRecord *Record) const { if (Record->Availability.isUnconditionallyUnavailable()) return true; - // Filter out symbols without a name as we can generate correct symbol graphs - // for them. In practice these are anonymous record types that aren't attached - // to a declaration. - if (auto *Tag = dyn_cast<TagRecord>(Record)) { - if (Tag->IsEmbeddedInVarDeclarator) - return true; - } - // Filter out symbols prefixed with an underscored as they are understood to // be symbols clients should not use. if (Record->Name.starts_with("_")) |