diff options
author | Sean Callanan <scallanan@apple.com> | 2016-03-28 21:20:05 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2016-03-28 21:20:05 +0000 |
commit | 863fab69a295ac3759d2c937227ae6086baed3a5 (patch) | |
tree | b4bfa580f3b95ff7b309a78bd3ee6b8575252b7e /lldb/source/Commands/CommandObjectExpression.h | |
parent | 7092de4cd2b3c4c209544ee631f36c64b52caf84 (diff) | |
download | bcm5719-llvm-863fab69a295ac3759d2c937227ae6086baed3a5.tar.gz bcm5719-llvm-863fab69a295ac3759d2c937227ae6086baed3a5.zip |
Expose top-level Clang expressions via the command line and the API.
Top-level Clang expressions are expressions that act as new translation units,
and define their own symbols. They do not have function wrappers like regular
expressions do, and declarations are persistent regardless of use of the dollar
sign in identifiers. Names defined by these are given priority over all other
symbol lookups.
This patch adds a new expression option, '-p' or '--top-level,' which controls
whether the expression is treated this way. It also adds a flag controlling
this to SBExpressionOptions so that this API is usable externally. It also adds
a test that validates that this works. (The test requires a fix to the Clang
AST importer which I will be committing shortly.)
<rdar://problem/22864976>
llvm-svn: 264662
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.h')
-rw-r--r-- | lldb/source/Commands/CommandObjectExpression.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.h b/lldb/source/Commands/CommandObjectExpression.h index 9bd0497d27e..4c5bff8e2a9 100644 --- a/lldb/source/Commands/CommandObjectExpression.h +++ b/lldb/source/Commands/CommandObjectExpression.h @@ -54,6 +54,7 @@ public: // Options table: Required for subclasses of Options. static OptionDefinition g_option_table[]; + bool top_level; bool unwind_on_error; bool ignore_breakpoints; bool show_types; |