[PATCH] D16579: Warn if friend function depends on template parameters.
Serge Pavlov via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 4 00:46:02 PDT 2016
sepavloff updated this revision to Diff 52527.
sepavloff added a comment.
Updated patch
Added a check for presence of template declaration corresponding to the friend
function. Presence of similar functions but with specializations as argument
types is also checked now.
Made an atempt to make messages more clear to end user, not sure however if
they become better.
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.52527.patch
Type: text/x-patch
Size: 20742 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160404/63d3ab79/attachment-0001.bin>
More information about the cfe-commits
mailing list