llvm-project/clang/lib
Matheus Izvekov 3a0309c536
[clang] Improve diagnostics for expansion length mismatch
When checking parameter packs for expansion, instead of basing the diagnostic for
length mismatch for outer parameters only on the known number of expansions,
we should also analyze SubstTemplateTypeParmPackType and SubstNonTypeTemplateParmPackExpr
for unexpanded packs, so we can emit a diagnostic pointing to a concrete
outer parameter.

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

Differential Revision: https://reviews.llvm.org/D128095
2022-08-30 18:58:38 +02:00
..
APINotes
ARCMigrate [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
AST [X86][BF16] Add type mangling for Windows 2022-08-29 16:12:26 +08:00
ASTMatchers Revert "ManagedStatic: remove from ASTMatchersInternal.h" 2022-07-27 15:46:21 +02:00
Analysis Revert "[clang][dataflow] Extend transfer functions for other `CFGElement`s" 2022-08-26 22:41:20 +00:00
Basic [clang] Fix ambiguous use of `report_fatal_error`. 2022-08-29 15:32:49 +00:00
CodeGen [llvm-profdata] Handle internal linkage functions in profile supplementation 2022-08-29 16:15:12 -07:00
CrossTU Fixed a number of typos 2022-08-01 13:13:18 -04:00
DirectoryWatcher [clang] fix deprecation 2022-08-09 17:42:55 +02:00
Driver [AIX][clang][driver] Check the command string to the linker for exportlist opts 2022-08-30 10:38:38 -04:00
Edit [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
ExtractAPI [clang][ExtractAPI] Record availability information on all platforms 2022-08-19 14:54:52 -07:00
Format [NFC][clang-format] Fix typo 2022-08-29 09:34:05 +08:00
Frontend Use llvm::is_contained (NFC) 2022-08-27 21:21:00 -07:00
FrontendTool [C++20][Modules][HU 1/5] Introduce header units as a module type. 2022-03-25 09:17:14 +00:00
Headers [HLSL] Add abs library function 2022-08-25 18:56:51 -05:00
Index [clang][index] Index unresolved member expression as reference 2022-08-19 19:02:42 +03:00
IndexSerialization
Interpreter [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
Lex [Clang][Driver] Refine/refactor DriverKit support 2022-08-26 16:06:24 -07:00
Parse [Clang] Avoid crashes when parsing using enum declarations 2022-08-27 15:18:36 -07:00
Rewrite [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
Sema [clang] Improve diagnostics for expansion length mismatch 2022-08-30 18:58:38 +02:00
Serialization [clang][modules] Track affecting modules 2022-08-24 11:09:50 -07:00
StaticAnalyzer [analyzer] Silence GCC warnings about unused variables. NFC. 2022-08-29 13:26:13 +03:00
Support [RISCV][Clang] Support policy function for all vector segment load. 2022-08-04 17:47:24 +00:00
Testing [include-cleaner] Include-cleaner library structure, and simplistic AST walking. 2022-04-29 11:04:11 +02:00
Tooling Revert "[CMake] Avoid `LLVM_BINARY_DIR` when other more specific variable are better-suited" 2022-08-25 11:13:46 -04:00
CMakeLists.txt [RISCV] Moving RVV intrinsic type related util to clang/Support 2022-04-20 21:13:13 +08:00