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/scripts/interface | |
| parent | 68f56243563417be95e7ef6936f7b7fc9dedf580 (diff) | |
| download | bcm5719-llvm-a1e541bf9fe0253541e6460ed8866f1a4ce0c9dd.tar.gz bcm5719-llvm-a1e541bf9fe0253541e6460ed8866f1a4ce0c9dd.zip | |
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/scripts/interface')
| -rw-r--r-- | lldb/scripts/interface/SBExpressionOptions.i | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/scripts/interface/SBExpressionOptions.i b/lldb/scripts/interface/SBExpressionOptions.i index 1f423cf47e4..1e822ce919f 100644 --- a/lldb/scripts/interface/SBExpressionOptions.i +++ b/lldb/scripts/interface/SBExpressionOptions.i @@ -118,6 +118,15 @@ public: %feature("docstring", "Sets the prefix to use for this expression. This prefix gets inserted after the 'target.expr-prefix' prefix contents, but before the wrapped expression function body.") SetPrefix; void SetPrefix (const char *prefix); + + %feature("docstring", "Sets whether to auto-apply FixIt hints to the expression being evaluated.") SetAutoApplyFixIts; + void + SetAutoApplyFixIts(bool b = true); + + %feature("docstring", "Gets whether to auto-apply FixIt hints to an expression.") GetAutoApplyFixIts; + bool + GetAutoApplyFixIts(); + protected: |

