llvm-project/clang/lib/Sema
James Dennett dd2ffea288 Replace the broken LambdaCapture::isInitCapture API.
A LambdaCapture does not have sufficient information
to correctly determine whether it is an init-capture or not.
Doing so requires knowledge held in the LambdaExpr itself.

It the case of a nested capture of an init-capture it is not
sufficient to check (as LambdaCapture::isInitCapture did)
whether the associated VarDecl was from an init-capture.

This patch moves isInitCapture to LambdaExpr and updates
Capture->isInitCapture() to Lambda->isInitCapture(Capture).

llvm-svn: 236760
2015-05-07 18:48:18 +00:00
..
AnalysisBasedWarnings.cpp Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:00:23 +00:00
AttributeList.cpp Automate attribute argument count semantic checking when there are variadic or optional arguments present. With this, the only time you should have to manually check attribute argument counts is when HasCustomParsing is set to true, or when you have variadic arguments that aren't really variadic (like ownership_holds and friends). 2014-07-31 16:37:04 +00:00
CMakeLists.txt Split off CUDA-specific Sema parts to a new file 2014-09-03 15:27:03 +00:00
CodeCompleteConsumer.cpp Teach Twine to support SmallString. 2015-03-17 09:51:17 +00:00
DeclSpec.cpp Add check for kind of UnqualifiedId in Declarator::isStaticMember() 2015-03-30 00:43:56 +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 Warn when jumping out of a __finally block via goto. 2015-03-09 04:27:56 +00:00
Makefile
MultiplexExternalSemaSource.cpp [Modules] Preserve source order for the map of late parsed templates. 2015-03-26 09:08:15 +00:00
Scope.cpp MS ABI: Implement the MSVC 2015 scheme for scope disambiguation 2015-03-19 21:54:30 +00:00
ScopeInfo.cpp SEH: Diagnose use of C++ EH and SEH in the same function 2015-02-02 22:15:31 +00:00
Sema.cpp [Modules] Make "#pragma weak" undeclared identifiers be tracked 2015-03-26 08:32:49 +00:00
SemaAccess.cpp Don't assume friended C++ method decls have qualifiers 2014-12-17 23:40:46 +00:00
SemaAttr.cpp Implement section pragma feedback on r205810 2015-03-04 23:39:17 +00:00
SemaCUDA.cpp Create a frontend flag to disable CUDA cross-target call checks 2015-04-15 22:27:06 +00:00
SemaCXXScopeSpec.cpp [modules] If we reach a definition of a class for which we already have a 2015-03-26 04:09:53 +00:00
SemaCast.cpp Replace getPointeeType()->isFunctionType with isMemberDataPointerType 2015-04-24 01:25:08 +00:00
SemaChecking.cpp [SystemZ] Add support for z13 low-level vector builtins 2015-05-05 19:36:42 +00:00
SemaCodeComplete.cpp [modules] Stop trying to fake up a linear MacroDirective history. 2015-04-29 23:20:19 +00:00
SemaConsumer.cpp
SemaDecl.cpp [modules] Suport for merging a parsed enum definition into an existing imported but not visible definition. 2015-05-07 03:54:19 +00:00
SemaDeclAttr.cpp Don't warn about use of deprecated API when the containing context is unavailable. 2015-04-30 17:20:35 +00:00
SemaDeclCXX.cpp PR23373: A defaulted union copy constructor that is not trivial must still be 2015-04-29 19:26:57 +00:00
SemaDeclObjC.cpp Fix PR22047: ObjC: Method unavailability attribute doesn't work with overloaded methods 2015-04-28 18:04:44 +00:00
SemaExceptionSpec.cpp [modules] Remove redundant import of lexical decls when building a lookup table 2015-03-23 03:25:59 +00:00
SemaExpr.cpp [modules] Stop trying to fake up a linear MacroDirective history. 2015-04-29 23:20:19 +00:00
SemaExprCXX.cpp Allow TransformTypos to ignore corrections to a specified VarDecl. 2015-05-05 19:17:03 +00:00
SemaExprMember.cpp Reduce dyn_cast<> to isa<> or cast<> where possible. Clang edition. 2015-04-10 11:37:55 +00:00
SemaExprObjC.cpp [Objective-C Sema]This patch fixes the warning when clang issues 2015-04-15 17:26:21 +00:00
SemaFixItUtils.cpp [modules] Stop trying to fake up a linear MacroDirective history. 2015-04-29 23:20:19 +00:00
SemaInit.cpp Add -Wpessimizing-move and -Wredundant-move warnings. 2015-04-29 01:52:17 +00:00
SemaLambda.cpp Fix assertion failure if a lambda array-capture is followed by a this capture. 2015-04-28 21:41:14 +00:00
SemaLookup.cpp [modules] Suport for merging a parsed enum definition into an existing imported but not visible definition. 2015-05-07 03:54:19 +00:00
SemaObjCProperty.cpp [Objective-C Sema] Use canonical type of properties when comparing 2015-04-08 21:34:04 +00:00
SemaOpenMP.cpp [OPENMP] Fixed codegen for 'reduction' clause. 2015-05-07 03:54:03 +00:00
SemaOverload.cpp Fix a few line endings. NFC. 2015-05-01 02:04:32 +00:00
SemaPseudoObject.cpp [Objective-C Sema]This patch fixes the warning when clang issues 2015-04-15 17:26:21 +00:00
SemaStmt.cpp When performing delayed typo correction in a for-range loop's variable 2015-05-07 00:11:02 +00:00
SemaStmtAsm.cpp [cuda] Ignore "TLS unsupported by target" errors for host variables during device compilation. 2015-04-27 19:37:53 +00:00
SemaStmtAttr.cpp Allow constant expressions in pragma loop hints. 2014-10-12 20:46:07 +00:00
SemaTemplate.cpp [modules] Suport for merging a parsed enum definition into an existing imported but not visible definition. 2015-05-07 03:54:19 +00:00
SemaTemplateDeduction.cpp Move private classes into anonymous namespaces 2015-03-23 12:31:05 +00:00
SemaTemplateInstantiate.cpp Instantiate incomplete class used in template method. 2015-05-04 16:44:39 +00:00
SemaTemplateInstantiateDecl.cpp Get rid of compiler warning. 2015-05-04 17:39:55 +00:00
SemaTemplateVariadic.cpp [Sema] Factor diags with %plural. No functionality change intended. 2015-03-27 17:23:14 +00:00
SemaType.cpp Re-land "MS ABI: lambda call operators are instance methods and should use thiscall" 2015-04-01 20:22:13 +00:00
TreeTransform.h Replace the broken LambdaCapture::isInitCapture API. 2015-05-07 18:48:18 +00:00
TypeLocBuilder.cpp [C++11] Use 'nullptr'. Sema edition. 2014-05-26 06:22:03 +00:00
TypeLocBuilder.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00