diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-08-05 20:31:47 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-08-05 20:31:47 +0000 |
commit | 5eb87cf30fcbfe64719d996cadc4f10a6047cc2c (patch) | |
tree | f9123447758e6652714d889eac2cf81f8d75b931 /lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h | |
parent | 1707735fa4793df55e68232f756287a2c7e26237 (diff) | |
download | bcm5719-llvm-5eb87cf30fcbfe64719d996cadc4f10a6047cc2c.tar.gz bcm5719-llvm-5eb87cf30fcbfe64719d996cadc4f10a6047cc2c.zip |
[lldb][NFC] Refactor ClangUserExpression::UpdateLanguageForExpr
The UpdateLanguageForExpr should only update the language, but over
time it started to do also do different things related to the generation
of the expression source code. This patch refactors all the source code
generation part into its own function.
llvm-svn: 367922
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h')
-rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h index 24c152bdb45..7ddc7b6312d 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h @@ -176,10 +176,11 @@ private: DiagnosticManager &diagnostic_manager) override; std::vector<std::string> GetModulesToImport(ExecutionContext &exe_ctx); - void UpdateLanguageForExpr(DiagnosticManager &diagnostic_manager, - ExecutionContext &exe_ctx, - std::vector<std::string> modules_to_import, - bool for_completion); + void CreateSourceCode(DiagnosticManager &diagnostic_manager, + ExecutionContext &exe_ctx, + std::vector<std::string> modules_to_import, + bool for_completion); + void UpdateLanguageForExpr(); bool SetupPersistentState(DiagnosticManager &diagnostic_manager, ExecutionContext &exe_ctx); bool PrepareForParsing(DiagnosticManager &diagnostic_manager, |