llvm-project/clang/lib
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
..
ARCMigrate Switch PPCallbacks to take the new MacroDefinition instead of MacroDirective*, in order to preserve full information on module macro expansion. 2015-05-04 03:15:40 +00:00
AST Replace the broken LambdaCapture::isInitCapture API. 2015-05-07 18:48:18 +00:00
ASTMatchers Add conversionDecl matcher for node CXXConversionDecl. 2015-04-20 20:58:50 +00:00
Analysis PR23334: Perform semantic checking of lambda capture initialization in the right context. 2015-04-27 21:27:54 +00:00
Basic [AArch64] Advertise that the __sync_*_compare_and_swap_1/2/4/8 builtins work 2015-05-06 15:31:46 +00:00
CodeGen [SanitizerCoverage] Give clang-cc1 the power to precisly specify needed sanitizier coverage mode. 2015-05-07 18:31:29 +00:00
Driver [SanitizerCoverage] Give clang-cc1 the power to precisly specify needed sanitizier coverage mode. 2015-05-07 18:31:29 +00:00
Edit [edit] Don't hit an assert when trying to delete a trailing space at EOF 2015-03-29 18:07:29 +00:00
Format clang-format: Improve r236597, Properly indent method calls without inputs. 2015-05-07 14:19:59 +00:00
Frontend [SanitizerCoverage] Give clang-cc1 the power to precisly specify needed sanitizier coverage mode. 2015-05-07 18:31:29 +00:00
FrontendTool Provide a BuryPointer for unique_ptrs. 2014-08-29 16:53:14 +00:00
Headers AVX-512: FP compare intrinsics - changed type of CC parameter from i8 to i32 according to the spec. 2015-05-07 11:26:36 +00:00
Index Rename MacroDefinition -> MacroDefinitionRecord, Preprocessor::MacroDefinition -> MacroDefinition. 2015-05-04 02:25:31 +00:00
Lex Fix buffer overflow in Lexer 2015-05-04 22:30:29 +00:00
Parse [modules] Suport for merging a parsed enum definition into an existing imported but not visible definition. 2015-05-07 03:54:19 +00:00
Rewrite Remove empty non-virtual destructors or mark them =default when non-public 2015-04-11 15:58:30 +00:00
Sema Replace the broken LambdaCapture::isInitCapture API. 2015-05-07 18:48:18 +00:00
Serialization [modules] Don't bother registering loaded macros if there are none. 2015-05-04 19:58:00 +00:00
StaticAnalyzer Add a missing forward def of CheckerManager. NFC. 2015-04-17 17:00:16 +00:00
Tooling Fix bug in Replacement's toString on Windows (missing flush). 2015-04-20 06:58:56 +00:00
CMakeLists.txt Fix build with various feature flag combinations 2014-07-14 22:17:22 +00:00
Makefile Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00