[PATCH] D113691: Comment AST: Recognize function-like objects via return type
Aaron Puchert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 11 10:12:38 PST 2021
aaronpuchert created this revision.
aaronpuchert added a reviewer: gribozavr2.
aaronpuchert requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
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 <https://reviews.llvm.org/D111264#3115104>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D113691
Files:
clang/include/clang/AST/Comment.h
clang/include/clang/AST/CommentSema.h
clang/lib/AST/Comment.cpp
clang/lib/AST/CommentSema.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113691.386572.patch
Type: text/x-patch
Size: 4059 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211111/bdaa131c/attachment-0001.bin>
More information about the cfe-commits
mailing list