This is an archive of the discontinued LLVM Phabricator instance.

[Docs] Fix duplicate enum item name
ClosedPublic

Authored by marcauberer on Aug 4 2022, 12:22 PM.

Diff Detail

Event Timeline

marcauberer created this revision.Aug 4 2022, 12:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 4 2022, 12:22 PM
Herald added a subscriber: StephenFan. · View Herald Transcript
marcauberer requested review of this revision.Aug 4 2022, 12:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 4 2022, 12:22 PM
MaskRay added inline comments.Aug 4 2022, 12:53 PM
llvm/include/llvm/IR/CallingConv.h
167

"HHVM" is an important detail here and does not repeat the enum member name.

[Docs] Fix duplicate enum item name

marcauberer marked an inline comment as done.Aug 4 2022, 1:02 PM

@MaskRay fixed it, thanks for pointing that out!

Since the whole file and the enum is about calling conventions, repeating "Calling convention ..." or "This is a calling convention" is verbose without carrying any weight.
I think they can just be simplified as something like "/// Used for ...". Also, you need to reflow the comments while the first line has been shortened, i.e. run clang-format on the modified lines.

Remove redundant occurrences of "calling convention" and reformat comments

@MaskRay should be done now. Clang format seems not to work for that kind of reformatting stuff so I did it manually.

@MaskRay @dblaikie is this ready to submit?

MaskRay accepted this revision.Aug 11 2022, 9:50 AM
This revision is now accepted and ready to land.Aug 11 2022, 9:50 AM
This revision was landed with ongoing or failed builds.Aug 11 2022, 9:59 AM
This revision was automatically updated to reflect the committed changes.

Thanks for reviewing. Can you submit the change. I do not have the required permissions