Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364771

Summary: [Clang] Add support for blocks extension in C and C++
Product: [Tools] CDT Reporter: Alex Blewitt <alex.blewitt>
Component: cdt-parserAssignee: Project Inbox <cdt-parser-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: enhancement    
Priority: P3 CC: cdtdoug, unalone, yevshif
Version: 8.1.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Alex Blewitt CLA 2011-11-24 17:31:27 EST
Build Identifier: 

Blocks are a type of lambda expression, which is compiled and available via LLVM as well as other supported libraries (e.g. libobjc2)

The blocks specification is here:

http://clang.llvm.org/docs/BlockLanguageSpec.txt

Not all compilers will support blocks, so this is something which should be an optional feature of the parser. However, it is also something that doesn't depend on Objective-C, as it is possible to use blocks from a traditional C-based program via LLVM as well.

Reproducible: Always
Comment 1 Marc-André Laperle CLA 2015-06-24 11:12:48 EDT
*** Bug 443502 has been marked as a duplicate of this bug. ***