[PATCH] D69543: [WIP][clangd] Add a tweak refactoring to wrap Objective-C string literals in `NSLocalizedString` macros

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 28 18:27:35 PDT 2019


arphaman created this revision.
arphaman added reviewers: jkorous, ilya-biryukov.
Herald added subscribers: usaxena95, ributzka, kadircet, dexonsmith, MaskRay, mgorny.
Herald added a project: clang.

This is a patch to add a refactoring to Clangd that mimics the existing refactoring action in Xcode that wraps around an Objective-C string literal in an `NSLocalizedString` macro.

This is still a WIP as I still haven't figured out how to make the test pass, and more test cases are missing :)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D69543

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69543.226829.patch
Type: text/x-patch
Size: 3849 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191029/24d9262b/attachment.bin>


More information about the cfe-commits mailing list