Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364771 - [Clang] Add support for blocks extension in C and C++
Summary: [Clang] Add support for blocks extension in C and C++
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 8.1.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
: 443502 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-24 17:31 EST by Alex Blewitt CLA
Modified: 2020-09-04 15:17 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***