[PATCH] D56611: [clangd] A code action to swap branches of an if statement

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 22 03:51:49 PST 2019


ilya-biryukov updated this revision to Diff 182884.
ilya-biryukov added a comment.

- Use helper to avoid creating RewriteBuffer
- Use std::string to fix stack corruption


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56611/new/

https://reviews.llvm.org/D56611

Files:
  clang-tools-extra/clangd/SourceCode.cpp
  clang-tools-extra/clangd/SourceCode.h
  clang-tools-extra/clangd/refactor/tweaks/CMakeLists.txt
  clang-tools-extra/clangd/refactor/tweaks/SwapIfBranches.cpp
  clang-tools-extra/unittests/clangd/CMakeLists.txt
  clang-tools-extra/unittests/clangd/TweakTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56611.182884.patch
Type: text/x-patch
Size: 14855 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190122/402b1187/attachment-0001.bin>


More information about the cfe-commits mailing list