[PATCH] D61467: [Rewrite] Extend to further accept CharSourceRange

Joel E. Denny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 2 14:27:27 PDT 2019


jdenny created this revision.
jdenny added reviewers: akyrtzi, Eugene.Zelenko, rsmith.
Herald added subscribers: dexonsmith, mgorny.
Herald added a project: clang.

Some Rewrite functions are already overloaded to accept CharSourceRange, and this extends others in the same manner.  I'm calling these in code that's not ready to upstream, but I figure they might be useful to others in the meantime.

This patch also adds some unit tests.  I'm not very familiar with unit testing here.  I used clangTooling to build the AST.  Is that appropriate?


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D61467

Files:
  clang/include/clang/Rewrite/Core/Rewriter.h
  clang/lib/Rewrite/Rewriter.cpp
  clang/unittests/Rewrite/CMakeLists.txt
  clang/unittests/Rewrite/RewriterTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61467.197866.patch
Type: text/x-patch
Size: 6289 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190502/569992b9/attachment-0001.bin>


More information about the cfe-commits mailing list