llvm-project/clang/test
Matheus Izvekov 4d8fff477e
[clang] retain type sugar in auto / template argument deduction
This implements the following changes:
* AutoType retains sugared deduced-as-type.
* Template argument deduction machinery analyses the sugared type all the way
down. It would previously lose the sugar on first recursion.
* Undeduced AutoType will be properly canonicalized, including the constraint
template arguments.
* Remove the decltype node created from the decltype(auto) deduction.

As a result, we start seeing sugared types in a lot more test cases,
including some which showed very unfriendly `type-parameter-*-*` types.

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>

Reviewed By: rsmith

Differential Revision: https://reviews.llvm.org/D110216
2021-11-13 03:35:22 +01:00
..
APINotes
ARCMT [clang] [Objective C] Inclusive language: use objcmt-allowlist-dir-path=<arg> instead of objcmt-white-list-dir-path=<arg> 2021-11-05 12:27:05 -04:00
AST Comment parsing: Complete list of Doxygen commands 2021-11-09 18:35:26 +01:00
ASTMerge Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
Analysis [analyzer][solver] Iterate to a fixpoint during symbol simplification with constants 2021-11-12 11:44:49 +01:00
CXX [clang] retain type sugar in auto / template argument deduction 2021-11-13 03:35:22 +01:00
ClangScanDeps [clang][deps] Keep #pragma push_macro, pop_macro and include_alias when minimizing source code. 2021-11-01 16:04:52 -04:00
CodeCompletion [CodeCompletion] Generally consider header files without extension 2021-11-10 08:22:48 +01:00
CodeGen [clang] Inclusive language: change instances of blacklist/whitelist to allowlist/ignorelist 2021-11-12 15:46:16 +00:00
CodeGenCUDA Emit hidden hostcall argument for sanitized kernels 2021-11-10 17:05:57 -05:00
CodeGenCXX Revert "Implement target_clones multiversioning" 2021-11-12 11:05:58 +01:00
CodeGenCoroutines [NFC] Fix lit test failures for clang/CodegenCoroutines 2021-11-09 02:47:16 +09:00
CodeGenHIP
CodeGenObjC [clang][objc][codegen] Skip emitting ObjC category metadata when the 2021-11-12 16:21:21 -08:00
CodeGenObjCXX [ObjC][ARC] Use operand bundle "clang.arc.attachedcall" on x86-64 2021-11-08 18:38:40 -08:00
CodeGenOpenCL Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
CodeGenOpenCLCXX [OpenCL] Constructor address space test adjusted for C++ for OpenCL 2021 2021-11-12 14:31:50 +00:00
CodeGenSYCL [CFE][Codegen] Make sure to maintain the contiguity of all the static allocas 2021-11-10 08:45:21 +05:30
Coverage
CoverageMapping [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
Driver [Driver] Fix ToolChain::getSanitizerArgs 2021-11-11 17:17:08 -05:00
FixIt
Format
Frontend Fix test after aee4925507. 2021-11-09 16:59:45 -05:00
Headers headers: optionalise some generated resource headers 2021-11-09 22:30:29 +00:00
Import Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
Index [clang] retain type sugar in auto / template argument deduction 2021-11-13 03:35:22 +01:00
Integration
InterfaceStubs
Interpreter Reland "[clang-repl] Allow loading of plugins in clang-repl." 2021-10-05 13:04:01 +00:00
Layout Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
Lexer Emit final macro diagnostics in system headers 2021-11-11 13:51:26 -06:00
LibClang
Misc Revert "Implement target_clones multiversioning" 2021-11-12 11:05:58 +01:00
Modules [AIX] Set D111860's test unsupported on AIX 2021-11-11 15:51:19 +00:00
OpenMP [OpenMP] Fix: opposite attributes could be set by -fno-inline 2021-11-10 16:48:09 +00:00
PCH Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
Parser [CUDA][NFC] Fix inexact warning message about lambdas 2021-10-27 01:28:35 +00:00
ParserSYCL
Preprocessor [clang] GCC directive extension extension: Hash NNN lines 2021-11-09 07:31:03 -08:00
Profile Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
Refactor
Rewriter
Sema Comment AST: Find out if function is variadic in DeclInfo::fill 2021-11-12 21:10:56 +01:00
SemaCUDA [openmp] Emit deferred diag only when device compilation presents 2021-10-25 11:19:18 -07:00
SemaCXX [clang] retain type sugar in auto / template argument deduction 2021-11-13 03:35:22 +01:00
SemaObjC format_arg attribute does not support nullable instancetype return type 2021-11-12 13:35:43 -08:00
SemaObjCXX Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
SemaOpenCL Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
SemaOpenCLCXX Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
SemaSYCL [X86][clang] Disable long double type for -mno-x87 option 2021-11-03 12:08:39 +03:00
SemaTemplate [clang] retain type sugar in auto / template argument deduction 2021-11-13 03:35:22 +01:00
TableGen
Templight
Tooling
Unit
VFS
clang-rename
utils/update_cc_test_checks Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
.clang-format
CMakeLists.txt Reinstate "[clang-repl] Re-implement clang-interpreter as a test case." 2021-10-26 19:29:56 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py Reinstate "[clang-repl] Re-implement clang-interpreter as a test case." 2021-10-26 19:29:56 +00:00
lit.site.cfg.py.in
make_test_dirs.pl