[clang][ExtractAPI] Add support C unions in non C++ parsing mode (#77451)
commit69fedaf830f8a2df4751a3c20189b7299daf88ae
authorDaniel Grumberg <dgrumberg@apple.com>
Mon, 22 Jan 2024 15:32:57 +0000 (22 15:32 +0000)
committerGitHub <noreply@github.com>
Mon, 22 Jan 2024 15:32:57 +0000 (22 15:32 +0000)
treede67602b2a11d8d137c43fc05a53f24e963ba6a6
parent726d940586d7018ef03e87cb86601f4885f66001
[clang][ExtractAPI] Add support C unions in non C++ parsing mode (#77451)

Ensure that we generate correct symbol kinds and declaration fragments
for unions in C and Objective-C parsing modes.

rdar://120544091
clang/include/clang/ExtractAPI/API.h
clang/include/clang/ExtractAPI/DeclarationFragments.h
clang/include/clang/ExtractAPI/ExtractAPIVisitor.h
clang/include/clang/ExtractAPI/Serialization/SerializerBase.h
clang/include/clang/ExtractAPI/Serialization/SymbolGraphSerializer.h
clang/lib/ExtractAPI/API.cpp
clang/lib/ExtractAPI/DeclarationFragments.cpp
clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
clang/test/ExtractAPI/union.c [new file with mode: 0644]