diff options
author | Richard Smith <richard@metafoo.co.uk> | 2023-03-30 16:07:55 -0700 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2023-03-30 17:00:16 -0700 |
commit | a07abe27b4d1d39ebb940a7f4e6235302444cbf0 (patch) | |
tree | e3454879935b11e87b534abb4d13410d59a99830 /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp | |
parent | 96a7e057567d3aaaa7e7c65cfce00430ad383a1b (diff) | |
download | llvm-a07abe27b4d1d39ebb940a7f4e6235302444cbf0.zip llvm-a07abe27b4d1d39ebb940a7f4e6235302444cbf0.tar.gz llvm-a07abe27b4d1d39ebb940a7f4e6235302444cbf0.tar.bz2 |
Factor out helper to determine whether a function is a "member-like
constrained friend".
When a friend declaration has a requires-clause, and either it's a
non-template function or it's a function template whose requires-clause
depends on an enclosing template parameter, it is member-like for the
purpose of redeclaration checking. Specifically, the lexically enclosing
class becomes part of its signature, so it can only be redeclared by
another declaration within the same class. In this change, we call such
functions "member-like constrained friends".
No functional change intended.
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions