llvm-project/clang/test
Bruno Ricci 5951ff4512
[clang] CWG 2082 and 2346: loosen the restrictions on parameters and local variables in default arguments.
This patch implements the resolution of CWG 2082 and CWG 2346.

The resolution of CWG 2082 changed [dcl.fct.default]p7 and p9 to allow
a parameter or local variable to appear in a default argument if not
in a potentially-evaluated expression.

The resolution of CWG 2346 changed [dcl.fct.default]p7 to allow a local
variable to appear in a default argument if not odr-used.

An issue remains after this patch
(see the FIXME in test/CXX/dcl.decl/dcl.meaning/dcl.fct.default/p7.cpp).
This is addressed by the next patch.

Differential Revision: https://reviews.llvm.org/D81615

Reviewed By: rsmith, erichkeane
2020-06-11 12:41:08 +01:00
..
ARCMT
AST Add begin source location for the attributed statement created from PragmaLoopHint decorated loop 2020-06-09 10:08:40 -07:00
ASTMerge
Analysis [analyzer] On-demand parsing capability for CTU 2020-06-11 10:56:59 +02:00
CXX [clang] CWG 2082 and 2346: loosen the restrictions on parameters and local variables in default arguments. 2020-06-11 12:41:08 +01:00
ClangScanDeps
CodeCompletion [Sema][CodeComplete][ObjC] Don't include arrow/dot fixits 2020-06-08 12:46:00 -04:00
CodeGen [ASan][Test] Fix expected strings for globals test 2020-06-10 20:26:24 +02:00
CodeGenCUDA [CUDA][HIP] Fix constexpr variables for C++17 2020-06-03 21:56:52 -04:00
CodeGenCXX Revert "[clang] Frontend components for the relative vtables ABI" 2020-06-10 13:50:05 -07:00
CodeGenCoroutines [CGCall] Annotate references with "align" attribute. 2020-05-19 20:21:30 -07:00
CodeGenHIP
CodeGenObjC Don't use a variable that isn't defined 2020-06-09 16:07:29 -07:00
CodeGenObjCXX [os_log][test] Remove -O1 from a test, NFC 2020-06-01 16:54:16 -07:00
CodeGenOpenCL Fix test on PS4 linux bot. 2020-06-02 20:17:02 +00:00
CodeGenOpenCLCXX [CGCall] Annotate references with "align" attribute. 2020-05-19 20:21:30 -07:00
CodeGenSYCL [SYCL] Update __builtin_unique_stable_name for other backends. 2020-04-17 07:54:18 -07:00
Coverage
CoverageMapping
Driver [hip] Fix the failed test case due to the additional backend phase. 2020-06-10 15:06:06 -04:00
FixIt
Format
Frontend [clang][Attribute] Fix noderef attribute false-negatives 2020-06-10 12:20:54 -07:00
Headers [OpenMP][SYCL] Improve diagnosing of unsupported types usage 2020-05-29 18:00:48 +03:00
Import [clang][AST] TextNodeDumper: dump the operator spelling for overloaded operators. 2020-06-09 15:18:14 +01:00
Index [clang][index] Fix a crash for accessing a null field decl. 2020-05-21 09:47:36 +02:00
Integration
InterfaceStubs [llvm][clang][IFS] Enhancing the llvm-ifs yaml format for symbol lists. 2020-04-01 10:49:06 -04:00
Layout [MS] Fix packed struct layout for arrays of aligned non-record types 2020-04-14 18:34:52 -07:00
Lexer [clang][slh] Add test for SLH feature checking macro 2020-05-15 12:23:31 -07:00
Misc Create a warning flag for 'warn_conv_*_not_used' 2020-06-10 09:09:48 -04:00
Modules [clang] Always allow including builtin headers in [no_undeclared_headers] modules. 2020-06-04 08:33:39 +02:00
OpenMP [OPENMP50]Codegen for inscan reductions in worksharing directives. 2020-06-04 16:29:33 -04:00
PCH [ObjC] Fix AST serialization for pseudo-strong parameters 2020-06-08 11:54:01 -04:00
Parser Remove improper uses of DiagnosticErrorTrap and hasErrorOccurred. 2020-06-08 14:19:57 -07:00
ParserSYCL [SYCL] Implement __builtin_unique_stable_name. 2020-03-25 07:01:50 -07:00
Preprocessor recommit "[HIP] Add default header and include path" 2020-06-06 14:21:22 -04:00
Profile Fix version of c-general.profdata.v5 test case 2020-06-10 16:20:20 +02:00
Refactor
Rewriter
Sema Make the diagnostic-missing-prototypes put the suggested `static` in front of `const` if exists. 2020-06-09 19:34:57 -04:00
SemaCUDA Revert D80450 "[CUDA][HIP] Fix implicit HD function resolution" 2020-06-10 17:42:28 -07:00
SemaCXX [clang][NFC] Fix and simplify the test added in 8dcc7eecb7 2020-06-09 21:17:19 +01:00
SemaObjC [Matrix] Add __builtin_matrix_transpose to Clang. 2020-06-09 10:14:37 +01:00
SemaObjCXX Disallow trivial_abi on a class if all copy and move constructors are 2020-06-10 14:12:13 -07:00
SemaOpenCL [AMDGPU] Introduce Clang builtins to be mapped to AMDGCN atomic inc/dec intrinsics 2020-06-09 17:02:58 +00:00
SemaOpenCLCXX [OpenCL] Added addrspace_cast operator in C++ mode. 2020-05-18 12:07:54 +01:00
SemaSYCL [OpenMP][SYCL] Improve diagnosing of unsupported types usage 2020-05-29 18:00:48 +03:00
SemaTemplate PR45589: Properly decompose overloaded `&&` and `||` operators in 2020-05-12 13:45:45 -07:00
TableGen
Templight
Tooling [Tooling] Drop leading/trailing whitespace from compile_flags.txt lines 2020-05-19 11:20:02 +02:00
Unit Revert a few unsuccessful attempts at fixing bots. 2020-04-13 17:09:21 -04:00
VFS
clang-rename
utils/update_cc_test_checks [utils] change default nameless value to "TMP" 2020-06-01 06:54:45 -04:00
.clang-format
CMakeLists.txt Stop passing site cfg files via --param to llvm-lit. 2020-04-07 08:20:40 -04:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [apple clang] disable in-process CC1 to preserve crashlog compatibility 2020-06-05 10:55:42 -07:00
lit.site.cfg.py.in [apple clang] disable in-process CC1 to preserve crashlog compatibility 2020-06-05 10:55:42 -07:00
make_test_dirs.pl