llvm-project/clang/lib/Sema
Richard Smith 42b1057244 N3922: direct-list-initialization of an auto-typed variable no longer deduces a
std::initializer_list<T> type. Instead, the list must contain a single element
and the type is deduced from that.

In Clang 3.7, we warned by default on all the cases that would change meaning
due to this change. In Clang 3.8, we will support only the new rules -- per
the request in N3922, this change is applied as a Defect Report against earlier
versions of the C++ standard.

This change is not entirely trivial, because for lambda init-captures we
previously did not track the difference between direct-list-initialization and
copy-list-initialization. The difference was not previously observable, because
the two forms of initialization always did the same thing (the elements of the
initializer list were always copy-initialized regardless of the initialization
style used for the init-capture).

llvm-svn: 252688
2015-11-11 01:36:17 +00:00
..
AnalysisBasedWarnings.cpp Define weak and __weak to mean ARC-style weak references, even in MRC. 2015-10-22 18:38:17 +00:00
AttributeList.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
CMakeLists.txt [coroutines] Initial stub Sema functionality for handling coroutine await / yield / return. 2015-10-22 06:13:50 +00:00
CodeCompleteConsumer.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
DeclSpec.cpp Replace double-negated !SourceLocation.isInvalid() with SourceLocation.isValid(). 2015-10-03 05:15:57 +00:00
DelayedDiagnostic.cpp Add -Wpartial-availability. 2015-03-19 19:18:22 +00:00
IdentifierResolver.cpp [modules] Remove redundant import of lexical decls when building a lookup table 2015-03-23 03:25:59 +00:00
JumpDiagnostics.cpp Some minor ARC diagnostic improvements. 2015-10-21 18:06:38 +00:00
Makefile
MultiplexExternalSemaSource.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
Scope.cpp MS ABI: Implement the MSVC 2015 scheme for scope disambiguation 2015-03-19 21:54:30 +00:00
ScopeInfo.cpp Properly clear current coroutine promise on FunctionScopeInfo reuse. Should 2015-10-27 07:47:45 +00:00
Sema.cpp Refine r251469 to give better (and more localizable) diagnostics 2015-10-28 05:03:19 +00:00
SemaAccess.cpp -Wdeprecated: SavedInstanceContext is returned by value but isn't really copyable, but it can be made movable 2015-08-12 22:58:10 +00:00
SemaAttr.cpp Implement section pragma feedback on r205810 2015-03-04 23:39:17 +00:00
SemaCUDA.cpp [CUDA] Allow function overloads in CUDA based on host/device attributes. 2015-09-22 17:22:59 +00:00
SemaCXXScopeSpec.cpp Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
SemaCast.cpp Define weak and __weak to mean ARC-style weak references, even in MRC. 2015-10-22 18:38:17 +00:00
SemaChecking.cpp Make SemaBuiltinCpuSupports a static function. NFC. 2015-11-07 08:08:31 +00:00
SemaCodeComplete.cpp Define weak and __weak to mean ARC-style weak references, even in MRC. 2015-10-22 18:38:17 +00:00
SemaConsumer.cpp
SemaCoroutine.cpp [coroutines] Creation of promise object, lookup of operator co_await, building 2015-10-27 06:02:45 +00:00
SemaDecl.cpp N3922: direct-list-initialization of an auto-typed variable no longer deduces a 2015-11-11 01:36:17 +00:00
SemaDeclAttr.cpp Implement __attribute__((internal_linkage)). 2015-11-10 21:28:44 +00:00
SemaDeclCXX.cpp [Sema] Remove an unreachable llvm_unreachable 2015-10-21 19:48:47 +00:00
SemaDeclObjC.cpp Simplify Sema::ProcessPropertyDecl. NFC 2015-11-03 17:02:34 +00:00
SemaExceptionSpec.cpp [coroutines] Creation of promise object, lookup of operator co_await, building 2015-10-27 06:02:45 +00:00
SemaExpr.cpp Use makeArrayRef instead of explicitly mentioning the type. NFC 2015-11-07 06:16:16 +00:00
SemaExprCXX.cpp Sema: correct typo recovery with blocks 2015-10-31 00:39:15 +00:00
SemaExprMember.cpp Look through using decls when classifying implicit member access 2015-10-20 18:12:08 +00:00
SemaExprObjC.cpp Stop back-patching 'readonly' Objective-C properties with 'readwrite' ones. 2015-11-03 01:15:46 +00:00
SemaFixItUtils.cpp [modules] Stop trying to fake up a linear MacroDirective history. 2015-04-29 23:20:19 +00:00
SemaInit.cpp [Sema] Make `&function_with_enable_if_attrs` an error 2015-10-12 19:57:04 +00:00
SemaLambda.cpp N3922: direct-list-initialization of an auto-typed variable no longer deduces a 2015-11-11 01:36:17 +00:00
SemaLookup.cpp [modules] Generalize the workaround for multiple ambiguous definitions of 2015-11-04 19:26:32 +00:00
SemaObjCProperty.cpp Simplify Sema::ProcessPropertyDecl. NFC 2015-11-03 17:02:34 +00:00
SemaOpenMP.cpp [coroutines] Add overloaded unary 'operator co_await'. 2015-10-22 05:12:22 +00:00
SemaOverload.cpp [modules] Generalize the workaround for multiple ambiguous definitions of 2015-11-04 19:26:32 +00:00
SemaPseudoObject.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
SemaStmt.cpp Tweak how -Wunused-value interacts with macros 2015-10-27 19:47:40 +00:00
SemaStmtAsm.cpp Use ArrayRef and MutableArrayRef instead of a pointer and size. NFC 2015-10-21 02:34:10 +00:00
SemaStmtAttr.cpp Add new llvm.loop.unroll.enable metadata for use with "#pragma unroll". 2015-08-10 17:29:39 +00:00
SemaTemplate.cpp [Sema] Implement __make_integer_seq 2015-11-04 03:40:30 +00:00
SemaTemplateDeduction.cpp Convert a few classes over to use the new TrailingObjects helper. 2015-08-06 20:26:32 +00:00
SemaTemplateInstantiate.cpp Revert r107690 (for PR7417) and add a testcase that it breaks. The approach of 2015-10-05 20:05:21 +00:00
SemaTemplateInstantiateDecl.cpp [Sema] Implement __make_integer_seq 2015-11-04 03:40:30 +00:00
SemaTemplateVariadic.cpp PR14858: Initial support for proper sizeof... handling within alias templates. 2015-09-23 21:41:42 +00:00
SemaType.cpp Define weak and __weak to mean ARC-style weak references, even in MRC. 2015-10-22 18:38:17 +00:00
TreeTransform.h N3922: direct-list-initialization of an auto-typed variable no longer deduces a 2015-11-11 01:36:17 +00:00
TypeLocBuilder.cpp
TypeLocBuilder.h Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00