aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorYaxun (Sam) Liu <yaxun.liu@amd.com>2023-05-09 14:05:55 -0400
committerYaxun (Sam) Liu <yaxun.liu@amd.com>2023-05-30 23:35:59 -0400
commit0442d08fdb173d89b0779d32eb929957a344f5e6 (patch)
treecb469f6e809b5ae074d87b602051a98cc9c1b2e8 /clang/lib/Frontend/CompilerInvocation.cpp
parentd5001e4f0daa19d41da8715e511acaa125cef0a4 (diff)
downloadllvm-0442d08fdb173d89b0779d32eb929957a344f5e6.zip
llvm-0442d08fdb173d89b0779d32eb929957a344f5e6.tar.gz
llvm-0442d08fdb173d89b0779d32eb929957a344f5e6.tar.bz2
[clang][Sema] Improve diagnostics for auto return type
Currently when clang fails to deduce auto return type of a function, it does not emit any notes about why it fails. This causes difficulty for users to fix such errors. Actually, clang already generates the information for emitting notes about the failed deduction. There is a TODO for actually emitting them. This patch tries to implement the TODO. Basically it passes the failed template specialization candidate set from the point of specialization failure back to the point where the deduction starts. It is not comprehensive but would be a start for further improvement. Reviewed by: Richard Smith, Matheus Izvekov Differential Revision: https://reviews.llvm.org/D150212 Fixes: SWDEV-354278
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions