This is an archive of the discontinued LLVM Phabricator instance.

[Docs] Escape the @ symbol, so that it appears in documentation output. [NFC]
ClosedPublic

Authored by mattd on Apr 23 2018, 1:02 PM.

Details

Summary

The '@' character is a special character in Doxygen. In a handful of cases we were not escaping this character which resulted in llvm intrinsics not being rendered properly. Specifically, the @llvm part was removed.

For example, see https://llvm.org/doxygen/classllvm_1_1AssumptionCache.html. There are a few references to '.assume' without the @llvm. prefix. This patch corrects this.

Diff Detail

Repository
rL LLVM

Event Timeline

mattd created this revision.Apr 23 2018, 1:02 PM
sanjoy accepted this revision.Apr 26 2018, 8:09 AM

lgtm

This revision is now accepted and ready to land.Apr 26 2018, 8:09 AM
sanjoy added inline comments.Apr 26 2018, 8:11 AM
include/llvm/Analysis/ScalarEvolution.h
1664 ↗(On Diff #143621)

Just checking -- is this necessary here? Or will it show up as \@llvm... in generated documentation?

mattd added inline comments.Apr 26 2018, 8:48 AM
include/llvm/Analysis/ScalarEvolution.h
1664 ↗(On Diff #143621)

Thanks for the review! I had a hunch that this might be a special case prior to submitting this patch. This description only seems to show up in the ScalarEvolution_8h_source.html., and not in any of the fancy class description docs. I never see it listed in the ScalarEvolution class description doc. I'm happy to leave this case untouched if you wish. I did not see a similar case while grepping around.

sanjoy added inline comments.Apr 26 2018, 9:07 AM
include/llvm/Analysis/ScalarEvolution.h
1664 ↗(On Diff #143621)

Let's revert this bit for now then.

mattd updated this revision to Diff 144151.Apr 26 2018, 10:26 AM
mattd marked an inline comment as done.

Removed the \@ case in ScalarEvolution.h that was prefixed by a \c.

This revision was automatically updated to reflect the committed changes.