This is an archive of the discontinued LLVM Phabricator instance.

[clang-doc] Always emit the TagType for RecordInfo
ClosedPublic

Authored by brettw on Aug 11 2022, 4:28 PM.

Details

Summary

Always emit the TagType for RecordInfo in YAML output. Previously this omitted the type for "struct", considering it the default. But records in C++ don't really have a default type so always emitting this is more clear.

Emit IsTypeDef in YAML. Previously this existed only in the Representation but was never written. Additionally, adds IsTypeDef to the record merge operation which was clearing it (all RecordInfo structures are merged with am empty RecordInfo during the reduce phase).

Diff Detail

Event Timeline

brettw created this revision.Aug 11 2022, 4:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 11 2022, 4:28 PM
brettw requested review of this revision.Aug 11 2022, 4:28 PM
brettw edited the summary of this revision. (Show Details)Aug 11 2022, 4:28 PM

would you mind splitting this patch into separate patches? I'd like to keep the fix for the assertion in SmallString separate. the rest seems to make sense together. otherwise LGTM

brettw updated this revision to Diff 452227.Aug 12 2022, 10:35 AM
brettw edited the summary of this revision. (Show Details)

Startup assert fix broken out into https://reviews.llvm.org/D131793

paulkirth accepted this revision.Aug 12 2022, 10:54 AM

Can you update the summary to reflect what's in this change now + add a tag for clang-doc?

[clang-doc] Always emit the TagType for RecordInfo

I can land this and D131793 once the summaries are in order.

This revision is now accepted and ready to land.Aug 12 2022, 10:54 AM
brettw retitled this revision from Fix some clang-doc issues. to [clang-doc] Always emit the TagType for RecordInfo.Aug 12 2022, 11:25 AM

Can you update the summary to reflect what's in this change now + add a tag for clang-doc?

[clang-doc] Always emit the TagType for RecordInfo

I can land this and D131793 once the summaries are in order.

Done

This revision was automatically updated to reflect the committed changes.