Anonymous enums without a typedef should have a "(anonymous)" identifier.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
clang/test/ExtractAPI/enum.c | ||
---|---|---|
684 | nit: normalize | |
693 | So the Name of the record is literally (anonymous)? I think this might create problems (well I guess we always had this problem) that multiple anonymous records of the same kind getting the same Name, and RecordMap is indexed with it... | |
720 | nit: normalize |
Address code review feedback:
- Normalize test file URIs
- Key RecordMaps by USR instead of by Name
clang/test/ExtractAPI/enum.c | ||
---|---|---|
693 | Agreed, added this to this patch. |
clang/test/ExtractAPI/enum.c | ||
---|---|---|
693 | Nice! Thanks Daniel! |
Add a second anonymous enum to the test case to make sure that distinct symbols
are generated for both of them.
nit: normalize