This is an archive of the discontinued LLVM Phabricator instance.

NFC fix doxygen comments
ClosedPublic

Authored by Prazek on Aug 30 2016, 4:04 PM.

Details

Summary

Fix some comments from to /

Event Timeline

Prazek updated this revision to Diff 69774.Aug 30 2016, 4:04 PM
Prazek retitled this revision from to NFC fix doxygen comments.
Prazek updated this object.
Prazek added reviewers: tejohnson, eraman.
Prazek added a subscriber: llvm-commits.
eraman added inline comments.Aug 30 2016, 5:26 PM
include/llvm/IR/Function.h
115–118

I believe you don't need a \brief if it is an one line comment.

194–196

This is a good place to use \brief. Something like
/ \brief Set the entry count for this function.
/
/// Entry count is the number of times the function is called and is obtained based on profile information

199–201

Same as above

lib/Analysis/InlineCost.cpp
128
Prazek added inline comments.Aug 30 2016, 5:43 PM
lib/Analysis/InlineCost.cpp
128

Thanks, I wasn't sure about this one.

Prazek updated this revision to Diff 73108.Sep 30 2016, 11:47 AM
Prazek marked 5 inline comments as done.

fixes

tejohnson edited edge metadata.Sep 30 2016, 12:48 PM

LGTM with a couple of fixes noted below. Please split out the non-doxygen fixes from this patch and submit those as separate NFC changes (doesn't need to be reviewed further).

include/llvm/IR/Function.h
194

s/breif/brief/
Also, I believe you need an empty line (also starting with ///) between the brief description and the detailed description.

195

s/cound/count/
s/function have been/the function was/

199

Needs line between brief and detailed

200

s/cound/count/
s/function have been/the function was/

include/llvm/ProfileData/ProfileCommon.h
57

This is not a doxygen change, remove from this patch.

61

Ditto on these 2 lines

70

Ditto

76

Ditto.

lib/ProfileData/ProfileSummaryBuilder.cpp
64

The changes to this file should also be submitted separately.

Prazek added inline comments.Sep 30 2016, 12:50 PM
include/llvm/ProfileData/ProfileCommon.h
57

Can I just change the name of the patch instead? Will be faster and easier

Prazek accepted this revision.Sep 30 2016, 5:05 PM
Prazek added a reviewer: Prazek.
Prazek marked 4 inline comments as done.
This revision is now accepted and ready to land.Sep 30 2016, 5:05 PM
Prazek closed this revision.Sep 30 2016, 5:06 PM