diff options
| author | Ewan Crawford <ewan@codeplay.com> | 2016-03-10 10:31:08 +0000 |
|---|---|---|
| committer | Ewan Crawford <ewan@codeplay.com> | 2016-03-10 10:31:08 +0000 |
| commit | 6dc9db52449255227a7cd00ed0b1283059824076 (patch) | |
| tree | be6e858cb872c07d8c085d64fe840f805d6dddb9 /lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h | |
| parent | e2961f71d2ad7fec1c2ff5aa1a17e92336007ce8 (diff) | |
| download | bcm5719-llvm-6dc9db52449255227a7cd00ed0b1283059824076.tar.gz bcm5719-llvm-6dc9db52449255227a7cd00ed0b1283059824076.zip | |
Track expression language from one place in ClangExpressionParser
The current expression language is currently tracked in a few places within the ClangExpressionParser constructor.
This patch adds a private lldb::LanguageType attribute to the ClangExpressionParser class and tracks the expression language from that one place.
Author: Luke Drummond <luke.drummond@codeplay.com>
Differential Revision: http://reviews.llvm.org/D17719
llvm-svn: 263099
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h')
| -rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h index 3c055380b83..288be8df470 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h @@ -129,6 +129,8 @@ private: class LLDBPreprocessorCallbacks; LLDBPreprocessorCallbacks *m_pp_callbacks; ///< Called when the preprocessor encounters module imports std::unique_ptr<ClangASTContext> m_ast_context; + lldb::LanguageType m_language; ///< The the source language of the expression + /// which may be explicitly set or inferred. }; } |

