llvm-project/clang/lib/Sema
Alex Lorenz 175388c00d [Sema] Avoid -Wshadow warnings for shadowed variables that aren't captured
by lambdas with an explicit capture list

This commit avoids the -Wshadow warning for variables which shadow variables
that aren't captured by lambdas with an explicit capture list. It provides an
additional note that points to location of the explicit capture.

The old behaviour is preserved with -Wshadow-all or -Wshadow-uncaptured-local.

rdar://17135966

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

llvm-svn: 286354
2016-11-09 10:38:57 +00:00
..
AnalysisBasedWarnings.cpp [coroutines] Build fallthrough and set_exception statements. 2016-10-27 07:30:31 +00:00
AttributeList.cpp Retire llvm::alignOf in favor of C++11 alignof. 2016-10-20 14:27:22 +00:00
CMakeLists.txt It seems we need to add SemaExpr.cpp to the /bigobj list; I am getting consistent failures of hitting the section count limit. 2016-06-01 15:17:54 +00:00
CodeCompleteConsumer.cpp Retire llvm::alignOf in favor of C++11 alignof. 2016-10-20 14:27:22 +00:00
DeclSpec.cpp [Sema] Store a SourceRange for multi-token builtin types 2016-10-21 21:13:56 +00:00
DelayedDiagnostic.cpp [Sema] Delay partial availability diagnostics, just like deprecated 2016-10-28 21:39:27 +00:00
IdentifierResolver.cpp [modules] Separately track whether an identifier's preprocessor information and 2016-02-05 19:03:40 +00:00
JumpDiagnostics.cpp [Sema] Handle CaseStmt and DefaultStmt as SwitchCase 2016-10-26 02:00:00 +00:00
MultiplexExternalSemaSource.cpp [Sema] Use unique_ptr instead of raw pointers in the late-parsed templates map. 2016-10-10 16:26:08 +00:00
Scope.cpp [Parser] Clear the TemplateParamScope bit of the current scope's flag 2016-04-29 02:24:14 +00:00
ScopeInfo.cpp [ObjC] Warn on unguarded use of partial declaration 2016-08-16 17:44:11 +00:00
Sema.cpp Sema: do not warn about unused const vars if main file is a header 2016-10-28 08:28:42 +00:00
SemaAccess.cpp P0136R1, DR1573, DR1645, DR1715, DR1736, DR1903, DR1941, DR1959, DR1991: 2016-06-28 19:03:57 +00:00
SemaAttr.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
SemaCUDA.cpp [CUDA] Use only the GVALinkage on function definitions. 2016-11-08 23:45:51 +00:00
SemaCXXScopeSpec.cpp Fix a crash on invalid code. 2016-10-28 00:15:24 +00:00
SemaCast.cpp [Sema] Allow static_cast<T&&>(e) to check explicit conversions for non-reference-related types. 2016-11-03 02:13:17 +00:00
SemaChecking.cpp [AVX-512][Sema] Add more intrinsics to the checks for valid immediates for embedded rounding control arguments. 2016-11-07 07:01:09 +00:00
SemaCodeComplete.cpp [index] Expose FriendDecl 2016-11-04 06:29:27 +00:00
SemaConsumer.cpp
SemaCoroutine.cpp [coroutines] Add diagnostics for copy/move assignment operators and functions with deduced return types. 2016-10-27 18:43:28 +00:00
SemaDecl.cpp [Sema] Avoid -Wshadow warnings for shadowed variables that aren't captured 2016-11-09 10:38:57 +00:00
SemaDeclAttr.cpp regcall: Implement regcall Calling Conv in clang 2016-11-02 18:29:35 +00:00
SemaDeclCXX.cpp Correctly ignore unnamed bit-fields when checking whether a union has fields. 2016-11-08 01:07:26 +00:00
SemaDeclObjC.cpp [index] Fix issue with protocol name locations in conformance list of an ObjC class when they come from a typedef. 2016-11-09 02:47:07 +00:00
SemaExceptionSpec.cpp [c++1z] P0012R1: Implement a few remaining pieces: downgrade diagnostic for 2016-10-22 01:32:19 +00:00
SemaExpr.cpp [Sema] Remove a dead assignment, NFC. 2016-11-03 06:35:16 +00:00
SemaExprCXX.cpp [c++1z] P0012R1: Implement a few remaining pieces: downgrade diagnostic for 2016-10-22 01:32:19 +00:00
SemaExprMember.cpp P0217R3: Perform semantic checks and initialization for the bindings in a 2016-08-11 22:25:46 +00:00
SemaExprObjC.cpp Add an assert to further check the invariant that a null pointer 2016-11-04 06:11:54 +00:00
SemaFixItUtils.cpp Wire a SourceLocation into IsDerivedFrom and move the RequireCompleteType call 2015-12-18 21:45:41 +00:00
SemaInit.cpp Remove unnecessary distinction between Ref_Compatible and 2016-10-21 23:01:55 +00:00
SemaLambda.cpp Fix for PR30632: Name mangling issue. 2016-10-14 12:43:59 +00:00
SemaLookup.cpp Delete a trivially true check for a variable 'S' being null. 2016-11-04 06:16:09 +00:00
SemaObjCProperty.cpp [ObjC] Remove _Atomic from return type and parameter type of 2016-05-26 00:37:30 +00:00
SemaOpenMP.cpp Re-apply patch r279045. 2016-10-25 12:50:55 +00:00
SemaOverload.cpp p0012: Teach resolving address of overloaded function with dependent exception 2016-11-01 01:31:23 +00:00
SemaPseudoObject.cpp PR25890: Fix incoherent error handling in PerformImplicitConversion and 2016-10-06 23:12:58 +00:00
SemaStmt.cpp [CUDA] Add Sema::CUDADiagBuilder and Sema::CUDADiagIf{Device,Host}Code(). 2016-10-13 18:45:08 +00:00
SemaStmtAsm.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
SemaStmtAttr.cpp Add loop pragma for Loop Distribution 2016-06-14 12:04:26 +00:00
SemaTemplate.cpp Add a note that points to the linkage specifier for the C++ linkage errors 2016-11-02 15:46:34 +00:00
SemaTemplateDeduction.cpp p0012: Teach resolving address of overloaded function with dependent exception 2016-11-01 01:31:23 +00:00
SemaTemplateInstantiate.cpp Fix spelling mistake. 2016-11-03 17:11:28 +00:00
SemaTemplateInstantiateDecl.cpp Reinstate r284008 reverted in r284081, with two fixes: 2016-10-14 21:41:24 +00:00
SemaTemplateVariadic.cpp PR26276: Fix detection of non-cast-expressions as operands of fold-expressions. 2016-10-20 00:55:15 +00:00
SemaType.cpp Test commit of vbyakovl. 2016-11-08 10:32:10 +00:00
TreeTransform.h [coroutines] Build fallthrough and set_exception statements. 2016-10-27 07:30:31 +00:00
TypeLocBuilder.cpp [Sema] Fix bug in TypeLocBuilder::pushImpl 2016-02-18 21:05:09 +00:00
TypeLocBuilder.h Retire llvm::alignOf in favor of C++11 alignof. 2016-10-20 14:27:22 +00:00