[Lldb-commits] [PATCH] D91103: [tooling] Add support for fixits that indicate code will need reformatting
Nathan James via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Nov 9 14:27:39 PST 2020
njames93 created this revision.
njames93 added reviewers: rsmith, aaron.ballman, klimek, alexfh.
Herald added subscribers: lldb-commits, cfe-commits, dexonsmith.
Herald added projects: clang, LLDB.
njames93 requested review of this revision.
Herald added a subscriber: JDevlieghere.
Implementing a FixItHint which indicates that code needs reformatting but not changing.
This is achieved by creating a FixItHint where the RemoveRange is equal to the InsertFromRange.
This means any dependent clients wont need updating as that is essentially a no-op. For clients that (are updated to) handle it, it signifies that code needs reformatting.
Currently this has been added to clang-tidy but for any refactoring tool that uses the Replacements its rather trivial to include support.
Generally this should be tacked onto other fix-its that maybe span multiple lines or insert/remove braces.
rG LLVM Github Monorepo
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 23491 bytes
Desc: not available
More information about the lldb-commits