This is an archive of the discontinued LLVM Phabricator instance.

Comment AST: Recognize function-like objects via return type (NFC)
ClosedPublic

Authored by aaronpuchert on Nov 11 2021, 10:12 AM.

Details

Summary

Instead of pretending that function pointer type aliases or variables
are functions, and thereby losing the information that they are type
aliases or variables, respectively, we use the existence of a return
type in the DeclInfo to signify a "function-like" object.

That seems pretty natural, since it's also the return type (or parameter
list) from the DeclInfo that we compare the documentation with.

Addresses a concern voiced in D111264#3115104.

Diff Detail

Event Timeline

aaronpuchert requested review of this revision.Nov 11 2021, 10:12 AM
aaronpuchert created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptNov 11 2021, 10:12 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aaronpuchert retitled this revision from Comment AST: Recognize function-like objects via return type to Comment AST: Recognize function-like objects via return type (NFC).Nov 11 2021, 12:45 PM
gribozavr2 accepted this revision.Nov 12 2021, 8:07 AM

Nice, thanks!

This revision is now accepted and ready to land.Nov 12 2021, 8:07 AM
This revision was landed with ongoing or failed builds.Nov 12 2021, 12:13 PM
This revision was automatically updated to reflect the committed changes.