diff options
author | Jim Ingham <jingham@apple.com> | 2016-03-25 01:57:14 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2016-03-25 01:57:14 +0000 |
commit | a1e541bf9fe0253541e6460ed8866f1a4ce0c9dd (patch) | |
tree | cabc44445df6df157522ea33af070393120e295e /lldb/source/Commands/CommandObjectExpression.h | |
parent | 68f56243563417be95e7ef6936f7b7fc9dedf580 (diff) | |
download | llvm-a1e541bf9fe0253541e6460ed8866f1a4ce0c9dd.zip llvm-a1e541bf9fe0253541e6460ed8866f1a4ce0c9dd.tar.gz llvm-a1e541bf9fe0253541e6460ed8866f1a4ce0c9dd.tar.bz2 |
Use Clang's FixItHints to correct expressions with "trivial" mistakes (e.g. "." for "->".)
This feature is controlled by an expression command option, a target property and the
SBExpressionOptions setting. FixIt's are only applied to UserExpressions, not UtilityFunctions,
those you have to get right when you make them.
This is just a first stage. At present the fixits are applied silently. The next step
is to tell the user about the applied fixit.
<rdar://problem/25351938>
llvm-svn: 264379
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.h')
-rw-r--r-- | lldb/source/Commands/CommandObjectExpression.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.h b/lldb/source/Commands/CommandObjectExpression.h index 7103675..9bd0497d 100644 --- a/lldb/source/Commands/CommandObjectExpression.h +++ b/lldb/source/Commands/CommandObjectExpression.h @@ -14,13 +14,13 @@ // C++ Includes // Other libraries and framework includes // Project includes +#include "lldb/lldb-private-enumerations.h" #include "lldb/Core/IOHandler.h" #include "lldb/Interpreter/CommandObject.h" #include "lldb/Interpreter/OptionGroupBoolean.h" #include "lldb/Interpreter/OptionGroupFormat.h" #include "lldb/Interpreter/OptionGroupValueObjectDisplay.h" #include "lldb/Target/ExecutionContext.h" - namespace lldb_private { class CommandObjectExpression : @@ -63,6 +63,7 @@ public: bool try_all_threads; lldb::LanguageType language; LanguageRuntimeDescriptionDisplayVerbosity m_verbosity; + LazyBool auto_apply_fixits; }; CommandObjectExpression (CommandInterpreter &interpreter); |