diff options
author | Sean Callanan <scallanan@apple.com> | 2012-05-16 21:03:38 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2012-05-16 21:03:38 +0000 |
commit | 8d825786d17a5732d3e2e37e0bb50f4debd94633 (patch) | |
tree | dc7d54b87988aa0d51ef5c1ed47d440ad36ae61b /lldb/source/Expression/ClangExpressionParser.cpp | |
parent | 3ef9c44747fbe74cf1e55c10edfd7f7c5c248618 (diff) | |
download | bcm5719-llvm-8d825786d17a5732d3e2e37e0bb50f4debd94633.tar.gz bcm5719-llvm-8d825786d17a5732d3e2e37e0bb50f4debd94633.zip |
Enabled C++11 in the expression parser. auto and
various other syntactic sugar work. Lambdas do
not due to some problems relocating code containing
lambdas. Rvalue references work when returned from
expressions, but need more testing.
llvm-svn: 156948
Diffstat (limited to 'lldb/source/Expression/ClangExpressionParser.cpp')
-rw-r--r-- | lldb/source/Expression/ClangExpressionParser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Expression/ClangExpressionParser.cpp b/lldb/source/Expression/ClangExpressionParser.cpp index efc00cc95d7..ecf0547e745 100644 --- a/lldb/source/Expression/ClangExpressionParser.cpp +++ b/lldb/source/Expression/ClangExpressionParser.cpp @@ -215,12 +215,14 @@ ClangExpressionParser::ClangExpressionParser (ExecutionContextScope *exe_scope, break; case lldb::eLanguageTypeC_plus_plus: m_compiler->getLangOpts().CPlusPlus = true; + m_compiler->getLangOpts().CPlusPlus0x = true; break; case lldb::eLanguageTypeObjC_plus_plus: default: m_compiler->getLangOpts().ObjC1 = true; m_compiler->getLangOpts().ObjC2 = true; m_compiler->getLangOpts().CPlusPlus = true; + m_compiler->getLangOpts().CPlusPlus0x = true; break; } |