diff options
author | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2018-05-15 14:31:48 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2018-05-16 07:10:39 +0000 |
commit | 26b09af2779e95e52509e34af6cf0668fe3832e1 (patch) | |
tree | bb93deccfeb8c3e051c668aaadaf8f34c95fd2b9 /src/plugins/texteditor/refactoringchanges.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 <ivan.donchevskii@qt.io>
Diffstat (limited to 'src/plugins/texteditor/refactoringchanges.cpp')
-rw-r--r-- | src/plugins/texteditor/refactoringchanges.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/texteditor/refactoringchanges.cpp b/src/plugins/texteditor/refactoringchanges.cpp index 85be3c76a6..93f53012ec 100644 --- a/src/plugins/texteditor/refactoringchanges.cpp +++ b/src/plugins/texteditor/refactoringchanges.cpp @@ -285,6 +285,11 @@ QString RefactoringFile::textOf(const Range &range) const return textOf(range.start, range.end); } +ChangeSet RefactoringFile::changeSet() const +{ + return m_changes; +} + void RefactoringFile::setChangeSet(const ChangeSet &changeSet) { if (m_fileName.isEmpty()) |