This is an archive of the discontinued LLVM Phabricator instance.

Comment AST: Add support for variable templates
ClosedPublic

Authored by aaronpuchert on Oct 6 2021, 1:22 PM.

Details

Summary

We treat them as variables of course, though if they have function
pointer type we treat them as functions, i.e. allow parameter and return
value specifications. Just like VarDecls.

Diff Detail

Event Timeline

aaronpuchert requested review of this revision.Oct 6 2021, 1:22 PM
aaronpuchert created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 6 2021, 1:22 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
gribozavr2 accepted this revision.Nov 8 2021, 3:58 AM
gribozavr2 added inline comments.
clang/test/Sema/warn-documentation.cpp
1348

"functionPointerTemplateMember"

This revision is now accepted and ready to land.Nov 8 2021, 3:58 AM
This revision was landed with ongoing or failed builds.Nov 9 2021, 1:30 PM
This revision was automatically updated to reflect the committed changes.
aaronpuchert marked an inline comment as done.