[PATCH] D16579: Warn if friend function depends on template parameters.
Serge Pavlov via cfe-commits
cfe-commits at lists.llvm.org
Mon May 9 12:07:52 PDT 2016
sepavloff updated this revision to Diff 56607.
sepavloff added a comment.
Changed implementation of friend function set.
Friend functions declared in template classes are not added to redeclaration chains,
but access to them is needed to make some checks. This change allows using the
set of friend functions not only to emit particular warning but also to serve as a
registry of file-level friend functions.
http://reviews.llvm.org/D16579
Files:
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/Sema/Sema.cpp
lib/Sema/SemaChecking.cpp
lib/Sema/SemaDecl.cpp
test/CXX/drs/dr3xx.cpp
test/CXX/drs/dr5xx.cpp
test/SemaCXX/friend.cpp
test/SemaCXX/overload-call.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16579.56607.patch
Type: text/x-patch
Size: 20798 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160509/c1116d8f/attachment-0001.bin>
More information about the cfe-commits
mailing list