diff options
author | Nikolai Kosjar <[email protected]> | 2018-05-15 14:31:48 +0200 |
---|---|---|
committer | Nikolai Kosjar <[email protected]> | 2018-05-16 07:10:39 +0000 |
commit | 26b09af2779e95e52509e34af6cf0668fe3832e1 (patch) | |
tree | bb93deccfeb8c3e051c668aaadaf8f34c95fd2b9 /src/plugins/clangtools/clangtoolsdiagnostic.cpp | |
parent | 1773b4d8b56cfdb74f0266a1972fcf0b96e1db65 (diff) |
ClangTools: Allow applying fixits
Add a new column to the view that allows to check diagnostics with
fixits. The checked fixits can then be applied with the also new "Apply
Fixits" button in the toolbar.
Some corner cases are not yet handled:
* File is open in editor
* File changed in the mean time
Change-Id: I3d3f353a4150699a0d082f2a4348e331a4213bcf
Reviewed-by: Ivan Donchevskii <[email protected]>
Diffstat (limited to 'src/plugins/clangtools/clangtoolsdiagnostic.cpp')
-rw-r--r-- | src/plugins/clangtools/clangtoolsdiagnostic.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/plugins/clangtools/clangtoolsdiagnostic.cpp b/src/plugins/clangtools/clangtoolsdiagnostic.cpp index 078113fe9e6..4f04c03338f 100644 --- a/src/plugins/clangtools/clangtoolsdiagnostic.cpp +++ b/src/plugins/clangtools/clangtoolsdiagnostic.cpp @@ -28,11 +28,6 @@ namespace ClangTools { namespace Internal { -ExplainingStep::ExplainingStep() - : depth(0) -{ -} - bool ExplainingStep::isValid() const { return location.isValid() && !ranges.isEmpty() && !message.isEmpty(); |