[LLVMdev] Using C++'11 language features in LLVM itself
rkotler at mips.com
Tue Jan 8 15:54:13 PST 2013
On 01/08/2013 03:45 PM, Chris Lattner wrote:
> It's seems like a quiet and peaceful day, lets stir things up a bit :)
> How crazy would it be for us to start using basic C++'11 language features (but not C++'11 library features) in LLVM: things like auto, rvalue-refs, lambdas, etc? I think that we can keep things well defined with a few simple requirements: language features must be supported by MSVC 2010 and later, some version of GCC and later (linux folks should pick?), some version of Clang and later (Freebsd folks?).
> On the one hand, this would greatly clean up code and is definitely the path forward. On the other hand, I don't want to substantially harm adoption or use of LLVM by adding another burden to building and developing it.
> If doing this would be a big problem for you, please speak up, and explain how/when the problem can be resolved. We will certainly adopt C++'11 features someday, so even if it isn't soon, it is good to have the discussion to find out what the issues are.
How about being able to use RTTI and exceptions? (stir, stir...)
More information about the llvm-dev